Skip to content

Instantly share code, notes, and snippets.

@jjercx
Last active February 1, 2022 18:08
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 jjercx/00fef4c386a39db195f1e955db244607 to your computer and use it in GitHub Desktop.
Save jjercx/00fef4c386a39db195f1e955db244607 to your computer and use it in GitHub Desktop.
Git Config
[user]
name = Juan José Ramírez
email = jjramirez@pucp.pe
[alias]
c = checkout
a = add
s = "!f() { git symbolic-ref --short HEAD && git status -s; }; f"
lg = log --oneline --decorate --all --graph
b = rev-parse --abbrev-ref HEAD
cb = checkout -b
cm = commit -m
ds = diff --staged
save = !git add -A && git commit -m 'WIP'
wip = stash --include-untracked
undo = reset HEAD~1 --mixed
f = fetch -p
ba = branch -a
ppl = shortlog -sn --no-merges
[core]
editor = code --wait
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment