My scrapbook about anything which I learned or want to remember, Sometime about tech tips, thoughts and rambling. If you find anything useful don't forget to give thumbs-up :)

Breaking

Sunday, February 28, 2021

Git Ignore File permission changes

Git is very sensitive about changes, it doesn't matter whether you have added a new line or space or changed the permission of file and folders, it tracks everything and treat them as a change. 

File and Folder permissions are something which sometime doesn't matter and can cause a commit with lots of file permission change which we dont want in out commit. 

We can ignore the file permission changes by executing below command which will set the fileMode in false state which is responsible to track the file permissions. 


$ git config core.fileMode false



Like the below page to get the update  
Facebook Page      Facebook Group      Twitter Feed      Telegram Group


No comments:

Post a Comment

Disclaimer

The postings on this site are my own and don't necessarily represent IBM's or other companies positions, strategies or opinions. All content provided on this blog is for informational purposes and knowledge sharing only.
The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of his information.