You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
276 B

add_codeberg_url () {
GITHUB_URL=`git remote -v | grep push | awk ' { print $2 } '`
CODEBERG_URL=`echo $GITHUB_URL | sed "s/github.com/codeberg.org/g"`
git remote set-url --add --push origin $GITHUB_URL
git remote set-url --add --push origin $CODEBERG_URL
}