Last active
May 27, 2020 07:45
-
-
Save danyg/21cf21e10693279d3ffa0f86915e8a34 to your computer and use it in GitHub Desktop.
Git Aliases & Config
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
#!/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