Github远程推送一直Everything up-to-date
問題描述:
Github遠程推送一直Everything up-to-date,但其實并沒有推送成功,遠程庫中沒有更新文件
可能原因分析及解決方法:
"git push with no additional arguments only pushes branches that exist in the remote already. If the remote repository is empty, nothing will be pushed. In this case, explicitly specify a branch to push, e.g. git push master."
這種情況表明可能是忘了commit;
git提交改動到緩存,要push的時候不會將本地所有的分支都push掉,所以可能是沒有指定提交的分支,我們應該告訴git提交哪個分支;
【按以下步驟】:
關于2的原文鏈接:https://blog.csdn.net/myhuashengmi/article/details/52197566
若按2執行還是不行,此時也有可能是因為合并分支更新了代碼,但沒有提交,導致緩存區沒有刷新文件信息,此時可以嘗試在主分支下重新提交改動:
$ git add . $ git commit -a然后重新push即可;
轉載于:https://www.cnblogs.com/zishu/p/9191815.html
總結
以上是生活随笔為你收集整理的Github远程推送一直Everything up-to-date的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 4.1 df命令 4.2 du命令 4.
- 下一篇: 设计模式 单例模式