Skip to content

Instantly share code, notes, and snippets.

@danyg
Last active May 27, 2020 07:45
Show Gist options
  • Save danyg/21cf21e10693279d3ffa0f86915e8a34 to your computer and use it in GitHub Desktop.
Save danyg/21cf21e10693279d3ffa0f86915e8a34 to your computer and use it in GitHub Desktop.
Git Aliases & Config
#!/bin/bash
git config --global alias.co checkout
git config --global alias.cob "checkout -b"
git config --global alias.st status
# https://ma.ttias.be/pretty-git-log-in-one-line/
git config --global alias.l "log --graph --pretty=format:'%C(#00BAFF)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(#81C4FF)<%an>%Creset' --abbrev-commit"
git config --global alias.ll "log --oneline"
git config --global push.default current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment