I have conf file that I want to keep some env(ip:port
) infos in different branches. So, I want to commit this conf file to dev branch with the content of dev:port and to test branch test:port and master:port etc. After committed these branches, I want to untrack this file because of merges between branches. After some researches everybody suggests git rm -r --cached filename
but it's unrelated with my issue. Any suggestion about that?
TL;DR:
A file that wants to keep in a repo but untracked.