vscode利用git上传到码云

git config --global user.name "xxx"

git config --global user.email "[email protected]"

git init 

git add .   //添加所有文件

git add README.md(如果项目中没有这个文件,会在后面几个操作中报错,解决方法是通过命令合并:git pull --rebase origin master)

git commit -m "first commit"

git remote add origin  https://www.yourgiturlxxxx.git 

 
remote url 地址(你的oschina的项目地址)

git push -u origin master //提交到码云平台

猜你喜欢

转载自www.cnblogs.com/zfj6666/p/12209568.html