Skip to content

Instantly share code, notes, and snippets.

@awesomebytes
Created January 24, 2016 23:47
Show Gist options
  • Select an option

  • Save awesomebytes/ce5f0a88f52814ef39eb to your computer and use it in GitHub Desktop.

Select an option

Save awesomebytes/ce5f0a88f52814ef39eb to your computer and use it in GitHub Desktop.
Script to activate git shortcuts like git co for git checkout
#!/bin/bash
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment