Git – The Lesser Known Skip-Worktree

When working on a project, there is almost certainly a stage where you would temporarily want to ignore changes in a file from being committed ( like a config file ). If you are using Git, the usually suggested option is ‘assume-unchanged’ as shown below

The problem with this option is that if you do a ‘git checkout .’ ( discarding changes in working tree ) then it will remove the changes in the file you have temporarily ignored also. A better solution is to use the ‘skip-worktree’ option

To remove this use


more info at –

more info at –