I pushed something to master
branch and then run a git pull --rebase
, I got a forced update, and then I found my last commit is missing, that's my command line history:
➜ ljmall git:(master) git commmit -m "refactor: enable self checkout on every environments"
[master 694c4c0f9] refactor: enable self checkout on every environments
3 files changed, 2 insertions(+), 17 deletions(-)
➜ ljmall git:(master) gp ----> (git push)
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.36 KiB | 1.36 MiB/s, done.
Total 9 (delta 8), reused 0 (delta 0)
To git.dmright.com:/opt/git/ljmall.git
fd72e86d7..694c4c0f9 master -> master
➜ ljmall git:(master) gst ----> (git status)
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
➜ ljmall git:(master) veil pull ----> (git pull --rebase)
From git.dmright.com:/opt/git/ljmall
+ 694c4c0f9...fd72e86d7 master -> origin/master (forced update)
First, rewinding head to replay your work on top of it...
I have no idea why the git server accepted my commit but after git pull --rebase
, it is missing.
I'm not sure I can reproduce this issue, because this is my first time, before that I committed 100+ times without any issue.
my Git version is 2.16.2, Git server version is 2.14.2, I built the git server: git clone --mirror git@github.com:/xxx/xxx.git
Also I use PyCharm IDE, I don't know it could be related with this issue.
Fetch URL is same as push URL.
I have tried revert my missing files modification via a PyCharm feature, so I commit and push again, without any issue, that's my command line history:
➜ ljmall git:(master) ✗ git add .
➜ ljmall git:(master) ✗ git commit -nm "refactor: enable self checkout on every environments"
[master bc0dbb78e] refactor: enable self checkout on every environments
3 files changed, 2 insertions(+), 17 deletions(-)
➜ ljmall git:(master) gp
Counting objects: 9, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.36 KiB | 1.36 MiB/s, done.
Total 9 (delta 8), reused 0 (delta 0)
To git.dmright.com:/opt/git/ljmall.git
fd72e86d7..bc0dbb78e master -> master
➜ ljmall git:(master) git pull --rebase
Already up to date.
Current branch master is up to date.