- Use your actual name. Your git history is valuable evidince of your skills and experience.
- Use an email address that'll last. You may not be that proud of
1337SquirtleSquad@yahoo.com
in a few years. - If you don't know how to quit vi, change your default git editor
- Create a global gitignore to make sure you don't commit needless, massive, or dangerous files to any repo.
- Set colors (color.ui) to
auto
if possible. Git will automatically remove color info when piping into another output
Settings in your global git config can be found via git config --global --list
.
They are saved in ~/.gitconfig
.
Poke around, investigate what options are availible and what you've got them set to.
This gist includes a good example gitignore for a starting point.
Keep in mind, anything you add to this ignore will not show up in git status
and git add
will require a force flag.
- Create a global git ignore file in your home directory `touch ~/.gitignore
- Copy the rules from the example gitignore into that file
- Tell git to use your ignore file
git config --global core.excludesfile ~/.gitignore