The .gitignore file is very useful in ignoring some of the files that we don\'t want to control. Unfortunately, it cannot be used when the file is already under version cont
I've written about three ways of excluding files elsewhere.
In summary:
The lower items in the list have priority over the higher items, and a ! in front of an item in any of the patterns in the file reverses a previous exclusion.
This paradigm is seen elsewhere in Git. For example, if you were using submodules, the url to the submodule to use is in the the .gitmodules file in the repository, but you can over-ride the url to use in the .git/config file.