git add
git commit -m "init"
git push
git push时遇到问题 (non-fast-forward)
出现这个问题是因为github中的README.md文件不在本地代码目录中,可以通过如下命令进行代码合并
解决方法:
1.把远程代码拉下来
$ git pull --rebase origin master
2.重新git push上传成功
$git push -u origin xxx
git add
git commit -m "init"
git push
git push时遇到问题 (non-fast-forward)
出现这个问题是因为github中的README.md文件不在本地代码目录中,可以通过如下命令进行代码合并
解决方法:
1.把远程代码拉下来
$ git pull --rebase origin master
2.重新git push上传成功
$git push -u origin xxx