mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复重置repo地址命令
This commit is contained in:
parent
d92a46d09c
commit
3fb01860d4
|
@ -345,6 +345,7 @@ reset_romote_url() {
|
||||||
if [[ $branch ]]; then
|
if [[ $branch ]]; then
|
||||||
part_cmd="origin/${branch}"
|
part_cmd="origin/${branch}"
|
||||||
git checkout -B "$branch"
|
git checkout -B "$branch"
|
||||||
|
git branch --set-upstream-to=$part_cmd $branch
|
||||||
fi
|
fi
|
||||||
git reset --hard $part_cmd &>/dev/null
|
git reset --hard $part_cmd &>/dev/null
|
||||||
cd $dir_current
|
cd $dir_current
|
||||||
|
|
Loading…
Reference in New Issue
Block a user