From a1d0f01eccbb38357ea973b8654b5a0d7d50eb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 15 Nov 2022 23:52:51 +0100 Subject: [PATCH] add function to set new git-url --- functions.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/functions.sh b/functions.sh index defc0d7..9b5595c 100755 --- a/functions.sh +++ b/functions.sh @@ -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