add remote upstream

This commit is contained in:
linsilence 2022-05-25 11:47:41 +08:00
commit 2a8b3aa2d4

View file

@ -159,14 +159,14 @@ fi
git remote -v | while read remote url extra; do
case "$url" in
https://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;;
git@github.com:snakewarhead/oh-my-zsh(|.git))
git remote set-url "$remote" "git@github.com:ohmyzsh/ohmyzsh.git"
git remote set-url upstream "git@github.com:ohmyzsh/ohmyzsh.git"
break ;;
# Update out-of-date "unauthenticated git protocol on port 9418" to https
git://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;;
esac
done