Search This Blog

Thursday, February 24, 2011

Open Source Software, git

What to do first when you have your awesome git installed?

Get your name and email ready:
$ git config --global user.name "myname"
$ git config --global user.email myname@example.com

Ignore files that you do not want git to track globally:
edit your ~/.gitignore
*.pyc
*~
/a/folder/


$ git config --global core.excludesfile ~/.gitignore 
 
Ignore files that you do not want git to track locally to your repository:
just add/edit a .gitignore to that repository  

No comments: