Curtis Free |
Husband · Dad · Geek |
BlogKeeping your home directory clean with Git @ 06 Aug 2011I recently decided to keep my important and public dotfiles in a repository on Github. In doing so, I comitted most of the simple configuration files that I want to have present in my home directory. Of course, though, over time I tend to collect numerous unwanted files in my home directory
(e.g., After committing what one wants to a Git repository, a check of Here, add all files/directories that you want in your home directory but do not wish to commit.
Ensure that you do not list any files you do not want at all (files like the aforementioned
Now, barring any changes you have made to files that are in your repo,
One caveat: Git will not "alert" you to unwanted directories (including nested directories) if they contain no actual files (see why here):
| |
[ CC BY-SA 4.0 ] |