Created
March 14, 2021 13:18
-
-
Save AmiralBl3ndic/b5accf4f822753a2183d2364b6519ffc to your computer and use it in GitHub Desktop.
Base Git config for CLI usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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