Last active
August 27, 2021 12:58
-
-
Save mhudasch/1656a8f34bf36ba9fdc187810ffba5e8 to your computer and use it in GitHub Desktop.
meine gitconfig
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
[user] | |
name = Martin Hudasch | |
email = martin.hudasch@live.de | |
[push] | |
default = simple | |
[alias] | |
list-aliases = !git config --list | grep ^alias\\. | cut -c 7- | grep -Ei --color \"$1\" "#" | |
aliases = list-aliases | |
la = list-aliases | |
st = status | |
co = checkout | |
ck = checkout | |
sw = switch | |
cm = !sh -c 'git add -A && git commit --message=\"$0\"' | |
purge = !git clean -f -d -x -e \".idea\" -e \".vscode\" -e \"environment.custom.ts\" -e \".env\" -e \"node_modules\" \"$@\" | |
configs = !git config --list --show-origin --show-scope | |
conf = configs | |
cfg = configs | |
conflicts = !git diff --name-only --diff-filter=U | |
ucm = undo-commit | |
fresh = !git fetch -p && git update submodule && git pull && git last | |
up = fresh | |
last = log --date=local -1 HEAD | |
last-files = log --stat --date=local -1 HEAD | |
log-files = !sh -c 'git log --stat $0' | |
undo-commit = !git reset HEAD^ | |
uncommit = undo-commit | |
jump-over-pull = !git stash && git fresh && git stash pop | |
jop = jump-over-pull | |
initial-push = !git push -u origin | |
ipush = initial-push | |
list-untracked = !git ls-files --others --exclude-standard | |
branches = !git branch | |
brs = !git branches | |
branch-commits = !sh -c 'git log $0..$1 --oneline --graph $2' | |
list-branches = !git remote show origin | |
list-branches-no-remote = !sh -c 'git remote prune origin && git branch -vv | grep \": gone]\" | cut -c 3- | cut -d \" \" -f1' | |
delete-branch = !sh -c 'git branch -d $0 && git push origin --delete $0 && git fresh' | |
delete-local-branch = !sh -c 'git branch -d $0' | |
delete-branches-no-remote = !sh -c 'git list-branches-no-remote | xargs -r git branch -D' | |
rmb = delete-local-banch | |
rmrb = delete-branch | |
unstage = !sh -c 'git reset -- \"$0\"' | |
ignored = !git ls-files --others --ignored --exclude-standard --directory && git ls-files --others -i --exclude-standard | |
ignore = !sh -c 'echo $0 >> .gitignore' | |
[credential] | |
helper = manager | |
[merge] | |
tool = vscode | |
[mergetool "kdiff3"] | |
path = C:/Program Files/KDiff3/kdiff3.exe | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED | |
[core] | |
filemode = false | |
editor = code --new-window --wait | |
[merge "theirs"] | |
driver = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment