gitee/github错误代码解决方法
一:错误代码 :
Updates were rejected because the tip of your current branch is behind
如果初始远程仓库在创建设置时有设置,那么初始仓库中就会有文件,那么直接在本地push就会报错
解决: 重新rebase本地仓库,rebase后远程仓库中的设置文件就会copy到本地,再正常进行push操作即可
git pull --rebase origin master
一:错误代码 :
Updates were rejected because the tip of your current branch is behind
如果初始远程仓库在创建设置时有设置,那么初始仓库中就会有文件,那么直接在本地push就会报错
解决: 重新rebase本地仓库,rebase后远程仓库中的设置文件就会copy到本地,再正常进行push操作即可
git pull --rebase origin master