martes, 13 de octubre de 2020

Git exclude some files

 

.gitignore is for ignoring untracked files, but you need to ignore changes in the tracked one. you could use git update-index --skip-worktree /path/to/config.php

See https://git-scm.com/docs/git-update-index#_skip_worktree_bit

 

 

https://git-scm.com/docs/gittutorial

 

1 comentario: