Skip to content

Instantly share code, notes, and snippets.

@AmiralBl3ndic
Created March 14, 2021 13:18
Show Gist options
  • Save AmiralBl3ndic/b5accf4f822753a2183d2364b6519ffc to your computer and use it in GitHub Desktop.
Save AmiralBl3ndic/b5accf4f822753a2183d2364b6519ffc to your computer and use it in GitHub Desktop.
Base Git config for CLI usage
[core]
longpaths = true
autocrlf = false
[alias]
cm = commit -m
cam = commit -am
rpo = remote prune origin
rpof = !git remote prune origin && git fetch
g = log --graph --pretty=oneline --abbrev-commit
st = status
stl = stash list
stp = stash pop
stm = stash push -m
sta = stash apply
std = stash drop
rha = reset HEAD --hard
rba = rebase --abort
unstage = restore --staged
ign = update-index --assume-unchanged
unign = update-index --no-assume-unchanged
c = checkout
cb = checkout -b
cd = checkout develop
delete = branch -D
amend = commit --amend --no-edit
medit = commit -a --amend
b = branch
ba = branch -a
whoami = config user.name
username = config user.name
email = config user.email
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment