mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修复重置repo地址命令
This commit is contained in:
parent
d92a46d09c
commit
3fb01860d4
|
@ -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