1.git更新本地项目到远程仓储。
https://blog.csdn.net/u014135752/article/details/79951802
我是fork了别人的项目,然后下到了本地,阅读后加上了注释,想要更新到我的github上,但是又怕更新到人家的那个上面,把人家出事的给覆盖了。
https://stackoverflow.com/questions/20939648/issue-pushing-new-code-in-github/28009046
出现了 git pull的问题。
git的分支到底是什么意思?
https://backlog.com/git-tutorial/cn/stepup/stepup1_1.html
也就相当于不同的文件夹,文件夹之间可以合并,这是我的理解。
https://www.jianshu.com/p/8265d29a0ba5
使用git branch可以查看当前分支的名字,git branch -r查看远程分支的名字。
https://blog.csdn.net/ming13849012515/article/details/81011632
本地仓储的branch和别的不能建立联系的话,就使用:git branch --set-upstream-to=origin/远程分支的名字 本地分支的名字 。
出现问题:
Updates were rejected because the tip of your current branch is behind its remote counterpart.
https://blog.csdn.net/zhangkui0418/article/details/82977519
但 git pull --allow-unrelated-histories 又出现了一下错误:
The following untracked working tree files would be overwritten by merge:
git add *
git stash
git pull
还是都不行啊。
还是解决不了,我决定换一种方法了。。
但是又出现了等问题,
Everything up-to-date Branch 'master' set up to track remote branch 'master' from 'origin'.
而且首先是这个"fatal: HttpRequestException encountered. "https://stackoverflow.com/questions/2936652/git-push-wont-do-anything-everything-up-to-date
大意是需要windows桌面版本才可以push
终于可以了,原来是账号登录不对了,我真的枯了。