I am out of ideas about what might be wrong here. I have this one repository that won't pull or merge anymore. git status
tells me I am one behind and it can be fast-forwarded, but neither pull nor merge do anything. I've checked a lot of other questions, but they had solutions that don't apply here.
xxx@yyy MINGW64 //filesystem/directory (master)
$ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
xxx@yyy MINGW64 //filesystem/directory (master)
$ git merge origin/master
Updating 4f3a29c..dbe3611
xxx@yyy MINGW64 //filesystem/directory (master)
$ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
xxx@yyy MINGW64 //filesystem/directory (master)
$ git pull
Updating 4f3a29c..dbe3611
xxx@yyy MINGW64 //filesystem/directory (master)
$ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
xxx@yyy MINGW64 //filesystem/directory (master)
$ git branch -vv
* master 4f3a29c [origin/master: behind 1] last commit message
xxx@yyy MINGW64 //filesystem/directory (master)
$ git merge origin/master
Updating 4f3a29c..dbe3611
xxx@yyy MINGW64 //filesystem/directory (master)
$ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
Is there something obvious I'm missing? Is my repo corrupt? v2.10.2 was giving me the problem, updated to v2.11 and it still happens. Thanks for any help!
Edit 1: Output from git branch -a
$ git branch -a
* master
remotes/origin/master
Edit 2: reset, as suggested by @Vampire
git reset --hard origin/branch
was the first command to give me:
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
it had not occurred to me to check for the lock file, but there it was. I deleted it, and the pull worked. I don't know why pull and merge didn't give me that hint. Thanks for your help!