Is Git and merging broken in Flare?
Posted: Thu Apr 18, 2019 8:00 am
Everytime I have tried to do a Git synchronise in Flare where a merge is involved, the sync ends up freezing (not even responding to the Cancel button being pressed) and the whole operation is left in an indeterminate state.
When I try “git push” from Git Bash I get:
To https://dev.azure.com/Acme/MyGuide/_git/MyGuide
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://Acme@dev.azure.com/Acme/MyGuide/_git/MyGuide'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Yet when I then try “git pull” I get:
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, commit your changes before merging.
fatal: Exiting because of unfinished merge.
“git commit” gives me:
$ git commit
fatal: Unable to create 'C:/Flare/MyGuide/.git/index.lock': File exists.
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.
I’ve tried deleting the index.lock file with no luck.
When I try “git push” from Git Bash I get:
To https://dev.azure.com/Acme/MyGuide/_git/MyGuide
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://Acme@dev.azure.com/Acme/MyGuide/_git/MyGuide'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Yet when I then try “git pull” I get:
error: You have not concluded your merge (MERGE_HEAD exists).
hint: Please, commit your changes before merging.
fatal: Exiting because of unfinished merge.
“git commit” gives me:
$ git commit
fatal: Unable to create 'C:/Flare/MyGuide/.git/index.lock': File exists.
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.
I’ve tried deleting the index.lock file with no luck.