我在git上遇到了问题,之前问过question,但没有解决。
当我在自己的git服务器上执行git push --mirror
时,在运行期间,我将提交提交到我的git服务器,它接受了。
➜ ljmall git:(master) ✗ gp
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.06 KiB | 1.06 MiB/s, done.
Total 4 (delta 3), reused 0 (delta 0)
To git.dmright.com:/opt/git/ljmall
a436fdda3..88ceb916e master -> master
git push --mirror
完成后,我想我应该再次推送,因为git服务器上应该有一个新的提交,但它告诉我Everything up-to-date
dejavu@ljhost-01:/opt/git/ljmall.git$ sudo -H -u git git push --mirror
Everything up-to-date
然后我在我的开发机器上运行git pull --rebase
,我的最后一次提交被强制更新。
Saved working directory and index state WIP on master: 88ceb916e feat: resources
From git.dmright.com:/opt/git/ljmall
+ 88ceb916e...a436fdda3 master -> origin/master (forced update)