Skip to content

Instantly share code, notes, and snippets.

@wesort
Last active February 29, 2024 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesort/ec02e252ed6946c79dc398d27b17a1ae to your computer and use it in GitHub Desktop.
Save wesort/ec02e252ed6946c79dc398d27b17a1ae to your computer and use it in GitHub Desktop.
git config with aliases
[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