add helpers
parent
c5cb0d7f9b
commit
41df408336
@ -0,0 +1,10 @@
|
|||||||
|
function sync_fork() {
|
||||||
|
git fetch upstream
|
||||||
|
BRANCH=$1
|
||||||
|
if [ -z "$BRANCH" ]; then
|
||||||
|
BRANCH="main"
|
||||||
|
fi
|
||||||
|
git rebase upstream/$BRANCH
|
||||||
|
git push -f
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue