Resources: Code
Untracking a file in GIT
18 May 2013
When you're working with multiple environments (which you'd usually be doing if you're using GIT!), you want to exclude your environment-specific configurations, like database connections and system alerts. If you've modified your .gitignore file accordingly, you still need to untrack your file from the Git index. To do this, run the code below:
git rm --cached [your_filename]