Skip to content

Instantly share code, notes, and snippets.

@itsbetma
Created January 12, 2022 19:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save itsbetma/a350dca5eb20e07e4b90d7372b64da45 to your computer and use it in GitHub Desktop.
Save itsbetma/a350dca5eb20e07e4b90d7372b64da45 to your computer and use it in GitHub Desktop.
[user]
email = my@email.awesome
name = Marco Antonio Bet
[core]
autocrlf = input
editor = vim
[alias]
ss = !git status -sb
ll = !git log --pretty=format:'%C(blue)%h %C(cyan)%ae %C(green)%cr%C(red)%d %C(white)%s'
lg = log --all --graph --decorate --oneline --abbrev-commit
ac = !git add -A && git commit -m
ck = checkout
ckb = checkout -b
staging = !git fetch && git checkout origin/staging
main = !git fetch && git checkout origin/main
amend = !git add -A && git commit -a --amend --no-edit
rename = !git add -A && git commit -a --amend
save = !git add -A && git commit -m 'SAVEPOINT'
restore = reset HEAD~1 --mixed
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment