git上传文件

git init
git add .
git commit -m 'first commit'
git remote add origin https://github.com/mingzewang/python_code.git
git stash
#git pull --rebase
git pull --rebase origin master #和远程文件夹合并
git push -u origin master
git status

异常:

fatal: remote origin already exists.

解决

#删除[remote “origin”] 一行
vi .git/config 

猜你喜欢

转载自blog.csdn.net/qq_32166779/article/details/85099090
今日推荐