How to ignore files during merging to master in git

by Deepak Dhakal 13. October 2017 18:14


You have Branch A and you made many changes from the master but you do not want FileA to go to Master during merge even you change it. 


How to do it in git ?

Here git-update-index - Register file contents in the working tree to the index.

git update-index --assume-unchanged <PATH_OF_THE_FILE>


git update-index --assume-unchanged somelocation/pom.xml



Powered by BlogEngine.NET - Old School Theme by n3o Web Designers