File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 77# Sync to upstream/yourforkname and rebase into your local fork. then push
88# back into yourfork/yourforkname
99#
10- # Assumes that your upstream fork's remote is named upstream
10+ # Assumes that your upstream fork's remote is named upstream unless you
11+ # set upstream-sync.remote with git config
1112
1213branch_name=$( git symbolic-ref --short -q HEAD)
14+ upstream_remote=$( git config --get upstream-sync.remote)
15+ # shellcheck disable=SC2181
16+ if [[ $? != 0 ]]; then
17+ echo ' Using default remote of upstream'
18+ upstream_remote=' upstream'
19+ fi
1320
14- git fetch upstream && \
15- git rebase upstream /${branch_name} && \
21+ git fetch ${upstream_remote} && \
22+ git rebase " ${upstream_remote} /${branch_name} " && \
1623 git push && \
1724 git fetch -p
You can’t perform that action at this time.
0 commit comments