今天有一些github.com停机时间,直到我推动了大约十几个本地提交,我才意识到.
这是我在尝试推送到github.com时收到的消息:
remote: Unexpected system error after push was received.
remote: These changes may not be reflected on github.com!
remote: Your unique error code: abcdefghijklmnopqrstuvwxuz
Run Code Online (Sandbox Code Playgroud)
现在github.com已经备份,当我在线查看项目提交历史时,我可以看到这些提交尚未被推送到回购.
我想我可以再次推动这些变化git push origin master,但我被告知Everything up-to-date.git pull origin master同样一个也表明了Everything up-to-date.
如何将这些本地更改推送到github.com上的我的回购?
tyl*_*ein 11
我不想这么快就回答我自己的问题,但是稍微修补一下,我发现这是一个快速的工作:
echo "bar" >> foo.txt
git add foo.txt
git commit -m "Add foo.txt"
git push origin master
git rm foo.txt
git commit -m "Remove foo.txt"
git push origin master
Run Code Online (Sandbox Code Playgroud)
这正确刷新了我的github.com repo的提交历史记录.这应该是安全的,但在尝试之前一定要备份本地代码.
为我推送另一个提交没有用.相反,从Web界面创建虚拟分支可以解决问题.
| 归档时间: |
|
| 查看次数: |
4370 次 |
| 最近记录: |