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