Ignore already added file to .gitignore git update-index --assume-unchanged file.txt Remember credentials git config --global credential.helper store