Here are 30 git aliases to increase your workflow productivity:
- “st” for “status”
- “co” for “checkout”
- “cm” for “commit -m”
- “pl” for “pull”
- “ps” for “push”
- “df” for “diff”
- “lg” for “log –graph”
- “br” for “branch“
- “unstage” for “reset HEAD”
- “reset” for “reset –hard”
- “cancel” for “revert”
- “merge” for “merge –no-ff”
- “amend” for “commit –amend”
- “last” for “log -1 HEAD”
- “ls” for “ls-files”
- “count” for “shortlog -sn”
- “untracked” for “ls-files –other –exclude-standard”
- “ignore” for “update-index –assume-unchanged”
- “unignore” for “update-index –no-assume-unchanged”
- “history” for “log –all –oneline –graph”
- “summary” for “diff –stat”
- “long” for “log –pretty=fuller”
- “clean” for “clean -fd”
- “stash” for “stash save”
- “apply” for “stash apply”
- “pop” for “stash pop”
- “drop” for “stash drop”
- “list” for “stash list”
- “show” for “show –pretty=fuller”
- “changes” for “diff –name-only”