Category Archives: Git

Git Ignore File mod changes

I was working with git and facing file mod changes issues every time.
Then i google it and found a way to ignore file mod changes as below
Run following command to ignore file mod changes

git config core.fileMode false

If you want to run this globally for current logged in user then run following command
in terminal

git config --global core.filemode false

How to change git url

I was searching about how to change url for git repo.
Then i came to a stackoverflow post
Its pretty easy to change url with only one command:

git remote set-url origin newurl

And thats it, you can verify newly set url by entering following command:

git remote show origin