Compare commits
1 Commits
1614f5757a
...
445fa7dd2c
Author | SHA1 | Date | |
---|---|---|---|
|
445fa7dd2c |
@ -62,7 +62,6 @@ alias gcm='git checkout master'
|
|||||||
alias gpl='git pull'
|
alias gpl='git pull'
|
||||||
alias gph='git push'
|
alias gph='git push'
|
||||||
alias gsu='git submodule update --init'
|
alias gsu='git submodule update --init'
|
||||||
alias gcp='git cherry-pick'
|
|
||||||
|
|
||||||
alias add='git add'
|
alias add='git add'
|
||||||
alias commit='git commit -m "To fixup"'
|
alias commit='git commit -m "To fixup"'
|
||||||
@ -70,7 +69,7 @@ alias cont='git rebase --continue'
|
|||||||
|
|
||||||
alias branch_clean='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
alias branch_clean='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
|
||||||
|
|
||||||
alias git_parent='git show-branch | grep "[-\*] \[" | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed "s/.*\[\(.*\)\].*/\1/"'
|
alias git_parent='git show-branch | grep "\*" | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed "s/.*\[\(.*\)\].*/\1/" | sed "s/[\^~].*//"'
|
||||||
|
|
||||||
alias log='git log --graph --decorate --oneline'
|
alias log='git log --graph --decorate --oneline'
|
||||||
|
|
||||||
@ -115,32 +114,28 @@ function grbi {
|
|||||||
git checkout ${PARENT}
|
git checkout ${PARENT}
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
echo "Rebasing on" ${PARENT}
|
|
||||||
|
|
||||||
# Back to previous branch
|
# Back to previous branch
|
||||||
git checkout ${BRANCH}
|
git checkout ${BRANCH}
|
||||||
git rebase --interactive ${PARENT}
|
git rebase -i ${PARENT}
|
||||||
}
|
}
|
||||||
|
|
||||||
function grbroot {
|
function grbroot {
|
||||||
git rebase --interactive --autosquash --root
|
git rebase --interactive --autosquash --root
|
||||||
}
|
}
|
||||||
|
|
||||||
function ga {
|
|
||||||
git autofixup HEAD~$1
|
|
||||||
git rebase --interactive --autosquash HEAD~$1
|
|
||||||
}
|
|
||||||
|
|
||||||
function gai {
|
function gai {
|
||||||
# Save parent branch
|
# Save parent branch
|
||||||
PARENT=$(git_parent)
|
PARENT=$(git_parent)
|
||||||
|
|
||||||
echo "Rebasing with autofixup on" ${PARENT}
|
|
||||||
|
|
||||||
git autofixup ${PARENT}
|
git autofixup ${PARENT}
|
||||||
git rebase --interactive --autosquash ${PARENT}
|
git rebase --interactive --autosquash ${PARENT}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ga {
|
||||||
|
git autofixup HEAD~$1
|
||||||
|
git rebase --interactive --autosquash HEAD~$1
|
||||||
|
}
|
||||||
|
|
||||||
# Git amend
|
# Git amend
|
||||||
alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
|
alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
|
||||||
alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
|
alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user