修复重置repo地址命令

This commit is contained in:
whyour 2022-03-07 22:31:46 +08:00
parent d92a46d09c
commit 3fb01860d4

View File

@ -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