git首次提交代码

git init

git add .

git commit -m "首次提交"

git remote add origin https://git.oschina.net/xxx/maple.git

错误:There is no tracking information for the current branch. 解决:

错误:fatal: refusing to merge unrelated histories   解决:git pull origin master --allow-unrelated-histories

git push --set-upstream origin master

猜你喜欢

转载自blog.csdn.net/bheru/article/details/84107684