Skip to content
Phillip Alexander edited this page Aug 17, 2013 · 18 revisions

Topic branches

You can choose to create a topic branch for the issue/set of issues your commits pertain to if you like.

Ignoring files

Please add operating system specific hidden files, editor specific swap files, and other things you need to ignore to your global git ignore. See ignoring files for details.

Create a (badass) global .gitconfig file

  1. paste this to terminal and run it to create an epic .gitconfig:
wget -O ~/.gitignore_global https://gist.github.com/phillipalexander/4d6aad089ec231e63ead/raw/331cdae177d1d883d2a6ff82954687eb48ce15b3/gistfile1.txt
  1. Setup git to use your github user name: git config --global user.name "REPLACE_WITH_YOUR_GITHUB_USERNAME"

  2. Setup git to use your github user name: git config --global user.email "REPLACE_WITH_YOUR_GITHUB_EMAIL"

Global gitignore

enter the following command (in terminal) to tell git to defer to your global ignore file
git config --global core.excludesfile ~/.gitignore_global

Closing issues with commits

Your commit message should reference the corresponding issue with closes #11 or fixes #12 so the corresponding issue will be closed and the issue will contain a link to the commit. More information on closing issues with pull requests.

Clone this wiki locally