Our workflow is develop on a local machine, commit the changes to a central repository, then check out the branch of that repository that we need.
The problem is tha
I often run a
git checkout -f file.xml
... on a versioned file.xml with world-write permissions, as I continually modify it and want to return it to the normal state.
But that resets the permissions. A slightly longer version:
git show HEAD:./file.xml > ./file.xml
Just resets the content.