Compare commits
4 Commits
d745903161
...
54fe5aa16a
Author | SHA1 | Date | |
---|---|---|---|
54fe5aa16a | |||
3245dd68ea | |||
9717e480cb | |||
03e582d4d5 |
@ -147,6 +147,19 @@ function grb {
|
||||
git rebase --interactive HEAD~$1
|
||||
}
|
||||
|
||||
function grbm {
|
||||
# Save current branch
|
||||
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
|
||||
|
||||
# Checkout master & pull
|
||||
git checkout master
|
||||
git pull
|
||||
|
||||
# Back to previous branch
|
||||
git checkout ${BRANCH}
|
||||
git rebase --interactive master
|
||||
}
|
||||
|
||||
function grbi {
|
||||
# Save current branch
|
||||
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
|
||||
@ -174,6 +187,11 @@ function ga {
|
||||
git rebase --interactive --autosquash HEAD~$1
|
||||
}
|
||||
|
||||
function gam {
|
||||
git autofixup master
|
||||
git rebase --interactive --autosquash master
|
||||
}
|
||||
|
||||
function gai {
|
||||
# Save parent branch
|
||||
PARENT=$(git_parent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user