Created
October 5, 2013 17:06
-
-
Save mayoralito/6843458 to your computer and use it in GitHub Desktop.
Git is really good at keeping a perfect history of the changes to your files. That's a great quality to have when those files are code, but not so great when a bit of application configuration slips in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We need to create a global .gitignore in our home. | |
``` | |
$> touch ~/.gitignore | |
$> git config --global core.excludesfile ~/.gitignore | |
``` | |
After that we need to open (your) editor | |
``` | |
$> vim ~/.gitignore | |
``` | |
and add at least the next lines (add as many as you need): | |
``` | |
# Mac OS X hidden files | |
.DS_Store | |
# Vim swap files | |
.*.sw? | |
# Pow and Powder config | |
/.pow* | |
# RVM and rbenv | |
/.rvmrc | |
/.rbenv-version | |
# Bundler binstubs | |
/bin/ | |
``` | |
All Credits: http://devoh.com/blog/2013/01/global-gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment