Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Last active August 23, 2016 06:17
Show Gist options
  • Select an option

  • Save bernardobarreto/3783618 to your computer and use it in GitHub Desktop.

Select an option

Save bernardobarreto/3783618 to your computer and use it in GitHub Desktop.
My git config
echo "Adding git aliases"
git config --global alias.br branch
git config --global alias.ci commit
echo "Adding git pull/push aliases"
git config --global alias.pop "push origin production"
git config --global alias.plp "pull origin production"
git config --global alias.pom "push origin master"
git config --global alias.plm "pull origin master"
git config --global alias.co checkout
git config --global alias.st status
git config --global alias.df diff
git config --global alias.undo "reset --soft HEAD^"
echo "Adding git log aliases"
git config --global alias.gl "log --graph --pretty=oneline --abbrev-commit"
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"
echo "Adding git colors"
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
git config --global color.ui auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment