-
-
Save philippetedajo/abba45b9fe230845c4168e4f4b734bb7 to your computer and use it in GitHub Desktop.
git
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] | |
email = [email protected] | |
name = Igor ESCHALIER | |
[alias] | |
co = checkout | |
br = branch | |
sts = status --short | |
last-log = log -5 --pretty --oneline | |
who = shortlog -sn | |
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
pretty-graph = log --all --graph --decorate --oneline --simplify-by-decoration | |
add-c = !git add -A && git commit | |
clean-merged = "!git co master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
clean-merged-dev = "!git co dev && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d" | |
recreate = "!f() { [[ -n $@ ]] && git checkout \"$@\" && git unpublish && git checkout master && git branch -D \"$@\" && git checkout -b \"$@\" && git publish; }; f" | |
remove-last = reset --hard HEAD~1 | |
week-commit = "!git whatchanged --since='1 weeks ago'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment