Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install git
- $ sudo apt-get install git-core
- User settings
- $ git config --global user.name "Dwayne R. Crooks"
- $ git config --global user.email "me@dwaynecrooks.com"
- Core settings
- $ git config --global core.editor nano
- $ git config --global core.excludesfile $HOME/.gitignore_global
- Other settings
- $ git config --global color.ui true
- Useful aliases
- Add to `.gitconfig`
- [alias]
- co = checkout
- ci = commit
- st = status
- br = branch
- hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
- type = cat-file -t
- dump = cat-file -p
- Add to `.bashrc`
- alias gs='git status '
- alias ga='git add '
- alias gb='git branch '
- alias gc='git commit '
- alias gd='git diff '
- alias go='git checkout '
Add Comment
Please, Sign In to add comment