Skip to content

Instantly share code, notes, and snippets.

@alittlesliceoftom
Created December 6, 2024 10:39
Show Gist options
  • Save alittlesliceoftom/7386bb39a9dda3698f70aab1735c2446 to your computer and use it in GitHub Desktop.
Save alittlesliceoftom/7386bb39a9dda3698f70aab1735c2446 to your computer and use it in GitHub Desktop.
Prefferred Additions to git config file (mostly only use the first 5 aliases.
[alias]
st = status
com = commit
co = checkout
br = branch
di = diff
unstage = reset HEAD --
last = log -1 HEAD
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
[push]
autoSetupRemote = true
@alittlesliceoftom
Copy link
Author

git config --list --show-origin can help you find your config file, or origin of specific config settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment