question
now suppose that a configuration file, config.json, is added to the remote repository. After I git clone the remote repository, I make changes to config.json. But I don"t want to commit my changes to the remote repository, and I don"t want to update this file every time I update from the remote warehouse (other files are updated as well). Is there any good solution?
the solution I can think of
I only think of git stash
caching local changes before each git pull
, and then git pull
, and then git stash pop
overwrites remote repository updates with locally cached changes
but it"s a bit troublesome to do this every time. Is there any way to let git know that I don"t want to update the config.json file in the remote warehouse, I just want to update other files?