Last active
February 29, 2024 13:26
-
-
Save wesort/ec02e252ed6946c79dc398d27b17a1ae to your computer and use it in GitHub Desktop.
git config with aliases
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
[user] | |
name = wesort | |
email = ben@wesort.co.uk | |
[push] | |
default = simple | |
[alias] | |
lg = "log --oneline -n 10 --decorate --graph --format=\"%C(auto)%h%Creset %C(auto)%d%Creset %s %C(auto)(%an, %ad)%Creset\" --date=format:\"%d %b %Y\"" | |
lg-all = log --all --decorate --oneline --graph | |
conflict = diff --name-only --diff-filter=U | |
goback = !git reset --hard HEAD && git clean -fd | |
s = status | |
co = checkout | |
com = checkout main | |
cod = checkout dev | |
ac = !git add . && git commit -m | |
again = !git add . && git commit --amend --no-edit | |
amend = !git add . && git commit --amend -m | |
[core] | |
editor = vim | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment