Sure. git update-index --assume-unchanged [
There are often times when you want to modify a file but not commit the changes, for example changing the database configuration to run on ...
Ignore files across all repos on your system; Ignore changes to committed files. Use gitignore to prevent tracking of files. Create a .gitignore file in ...
I recommend naming the source-controlled file differently than its actual expected name. For example, if the file is normally named config.json ...
If you want git to ignore changes in tracked file you need to use git update-index with assume-unchanged flag.
Commit your changes. Push to remote. After having done this, you will effectively "ignore tracked files without deleting them", removing them from ...
Commit or stash any outstanding local changes you might have.
How to ignore changes in tracked files with Git. 16/04/2015 by Stephan Partzsch. We all know the .gitignore file as a place to exclude files from the version ...
Sometimes you want to change a tracked file so that you can run your project locally on your machine. This is typical of configuration files and templates. But you ...
to discard changes in working directory) modified: CONTRIBUTING.md .