How do I definitively stop Git from trying to merge? I never want it to merge.
From How to make Git honor a cancelled merge that was not asked for?, I know the tool does not respect my cancellation by killing the editor it spins up without asking me. So now I just kill -9
the terminal process.
If I get into a situation where Git wants to merge, I always want the server's copy of the source file. I'll just delete the file locally and then fetch it again from the server.
Right now, Git is DoS'ing me with this piece of goodness:
You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.
Of course, the git reset HEAD <file>
did not work.
And here's the best part: they are the exact same file. There are no differences between them. I make a change, I test it on 8 to 12 different platforms (copying with scp
), and then I check it in on one of those boxes after testing. But from Tell Git to stop prompting me for conflicts when none really exist?, I know the tool is too stupid to show any intelligence in this area.
If you are wondering, there is one set of sources. They are the project's sources located on the remote server. All I want Git to do is checkout (clone), update (pull), tell me what has changed (diff) and checkin (push). I don't need any other features from the tool.