You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
170 B
Bash
11 lines
170 B
Bash
1 year ago
|
function sync_fork() {
|
||
|
git fetch upstream
|
||
|
BRANCH=$1
|
||
|
if [ -z "$BRANCH" ]; then
|
||
|
BRANCH="main"
|
||
|
fi
|
||
|
git rebase upstream/$BRANCH
|
||
|
git push -f
|
||
|
}
|
||
|
|