add function to set new git-url
This commit is contained in:
parent
fef455160b
commit
a1d0f01ecc
1 changed files with 11 additions and 0 deletions
11
functions.sh
11
functions.sh
|
@ -1266,5 +1266,16 @@ setserver() {
|
||||||
tmux set-environment sshcon "$@"
|
tmux set-environment sshcon "$@"
|
||||||
fi
|
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
|
#EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue