Created
September 5, 2011 20:36
-
-
Save marcosgz/1195857 to your computer and use it in GitHub Desktop.
git ubuntu 11.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment