How can I keep example config files in GIT? -
i have config file our debug output scheme contains bunch of illustration lines. want of engineers basic version of file when clone repo.
i don't want commit changes file. want ignore changes, leave file in repo else.
how do this? if git ignore file git wants me commit changes .gitignore repo. changing ~/.gitignore seems have no effect - changes still show in sourcetree.
btw, did search around , find thread. doesn't seem looking for. stop tracking , ignore changes file in git
if update index (git update-index
) in order instruct git file "hasn't changed", local modifications won't have committed:
git update-index --assume-unchanged -- yourfile
this local solution though: else can still modify , commit changes same file.
git
No comments:
Post a Comment