使用Git的问题记录
我在git pull时遇到了两种问题,分别是
hint: Updates were rejected because the tip of your current branch is behind
以及
hint: Updates were rejected because remote contains the work...
第一种直接强制push就可以,第二种需要先pull下来。
我在创建仓库的时候,发现没有自动创建分支,而是在第一次commit之后自动创建了一个分支(目前我还不清楚是main还是master)现在新建的仓库一般都是main作为,之前是master作为主分支。
1 | |
1 | |
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!