Skip to content

Instantly share code, notes, and snippets.

@marcosgz
Created September 5, 2011 20:36
Show Gist options
  • Save marcosgz/1195857 to your computer and use it in GitHub Desktop.
Save marcosgz/1195857 to your computer and use it in GitHub Desktop.
git ubuntu 11.04
# Install Git
$ sudo apt-get update
$ sudo apt-get install git-core git-doc git-svn git-gui gitk
$ git --version
git version 1.7.1
# Abbreviations
$ git config --global alias.st status
$ git config --global alias.co checkout
$ git config --global alias.ci commit
$ git config --global alias.br branch
$ git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
# Set your username and email.
$ git config --global user.name "My Name"
$ git config --global user.email "email@youremail.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment