-
-
Save mcany/3959b7ee1ed081e14515699740a12c4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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] | |
email = [email protected] | |
name = Mertcan YIGIN | |
[core] | |
autocrlf = true | |
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[svn] | |
followparent = true | |
[branch] | |
autosetuprebase = always | |
[log] | |
date = relative | |
[alias] | |
co = checkout | |
st = status | |
ec = config --global -e | |
br = branch -vv | |
gr = grep -i | |
del = branch -D | |
ls = !git branch -r && git br | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout origin/HEAD -b | |
task = "!f(){ git checkout origin/HEAD -b T${1} && git status; };f" | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'SAVEPOINT' | |
undo = reset HEAD~1 --mixed | |
amend = commit -a --amend | |
track = branch -u origin/HEAD | |
ren = git branch -m | |
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard | |
bclean = "!f() { git branch --no-track --no-color --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f" | |
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f" | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
cp = cherry-pick | |
lg = log --oneline | |
# Commit changes to current head as amended commit | |
plus = commit --amend -a -C HEAD | |
# clean repository | |
crepo = filter-branch --tag-name-filter cat --index-filter 'git rm -r --cached --ignore-unmatch filename' --prune-empty -f -- --all | |
# tag version | |
addTag = "!f() { git co master && git up && git tag -a v${1} -m "v${1}" && git tag;}; f" | |
delTag = "!f() { git tag -d v${1} && git push origin :refs/tags/v${1} && git tag;}; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment