Here is my scenario. I was on branch A, where I made some changes to certain file on my local working copy.
/launcher/file.esb
I basically want the following:
- Ignore the changes made to this file completely. I accomplished this using assume-unchanged
Untrack this file from version control, which I tried to accomplish using .gitignore.
Preserve the changes to this file on my local working folder as I checkout different branches. A->Develop->B->C etc...
It is #3 that I am not able to accomplish. As soon as I checkout a new branch and do a pull, the old changes are overwritten on the file.
Why is this happening? Shouldnt inclusion of this file path into .gitignore effectively take out this file completely out of reach of the version control tentacles?
How can I achieve #3?
This question is unlike the one mentioned in the "possible duplicate" link. Heres why:
Here's basically what I want in lay words. "Put this one particular file of mine in essentially a 'shell', that neither gets overwritten during ANY git operations nor gets taken into account if changed". Its basically excluding any form of version control synchronization between that file and staging/remote. This local file and the version on staging/remote must exist with mutual and total disconnection.