add function to set new git-url

This commit is contained in:
Jakobus Schürz 2022-11-15 23:52:51 +01:00
parent fef455160b
commit a1d0f01ecc

View file

@ -1266,5 +1266,16 @@ setserver() {
tmux set-environment sshcon "$@"
fi
}
setgitremote() {
cd ~/.local/myshellconfig
git checkout master
git remote set-url origin https://gitea.schuerz.at/jakob/myshellconfig.git
git remote set-url origin --push https://gitea.schuerz.at/jakob/myshellconfig.git
git fetch -p
git merge FETCH_HEAD
git submodule sync
git submodule update --init --recursive
}
#EOF