标签:-- rem merge upstream branch 提交 修改 ranch str
git提交路径修改
git remote set-url origin url
git remote set-url 是修改远程的url的命令,前提是要先有远程url
so 你必须先增加一个远程url
git remote add origin “xxx.git"
pull push 后面要加分支名称的问题
git branch --set-upstream-to origin/master
pull不能合并问题
git pull origin master --allow-unrelated-historie
Updates were rejected because the tip of your current branch is behind
1.使用强制push的方法:
git push -u origin master -f
2.push前先将远程repository修改pull下来
git pull origin master
git push -u origin master
3.若不想merge远程和本地修改,可以先创建新的分支:
git branch [name]
然后push
git push -u origin [name]
标签:-- rem merge upstream branch 提交 修改 ranch str
原文地址:https://www.cnblogs.com/yangslin/p/10655156.html