Skip to content

Instantly share code, notes, and snippets.

@broisnischal
Last active September 13, 2024 05:19
Show Gist options
  • Save broisnischal/19ae40c86ef5fecee8771f3895a0c84f to your computer and use it in GitHub Desktop.
Save broisnischal/19ae40c86ef5fecee8771f3895a0c84f to your computer and use it in GitHub Desktop.
Git Config
[user]
email = [email protected]
name = broisnischal
[alias]
st = status -sb
co = checkout
ci = commit -m
lg = log --oneline --graph --decorate --all
ca = commit --amend --no-edit
df = diff --word-diff
addall = add -A
ps = push
br = branch -vv
f = fetch
fp = fetch --prune
mg = merge
mga = merge --abort
rb = rebase
rbi = rebase -i
rbim = rebase -i main
rh = reset --hard HEAD
l = log --oneline --decorate --graph --all
ri = rebase -i
uncommit = reset HEAD~1 --mixed
stash-clear = !git stash list | cut -d: -f1 | xargs -n1 git stash drop
riup = rebase -i @{u}
cp = cherry-pick
who = blame
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
unstaged = diff --name-only
staged = diff --cached --name-only
pr = pull --rebase
aa = add -A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment