~/.gitconfig
: Usually holds your name and email address
[user]
email = [email protected]
name = Michele Mattioni
And different customizations, like alias:
[alias]
st = status
ci = commit
co = checkout
git co == git checkout (saving 6 chrs)
git ci == git commit (saving 4 chrs)
git st == git status (saving 4 chrs)
repo/.gitconfig
--> Holds the structure of the repo and branchesrepo/.gitignore
--> Ignore file which you don't wont to add to the project (*.pyc, *.class, ..)
- Nice slides by me here: http://www.slideshare.net/mattions/git-it
- Nice help guide: http://help.github.com/ and http://rogerdudler.github.com/git-guide/
- Create a repo
git init
- Commit, add, log, GUI
git ci, git add, git log, gitg
- Intro to branches
git co -b
- 3 ways merge
git mergetool
- Exportng the repo to github
git push
- Push/Pull system
git pull
- Forking someone else repo
handy github button
- Add colors to your git output:
git config color.ui true
- Do know in which branch are you: https://gist.github.com/2051095