- Ajout de la command git origin

This commit is contained in:
Frogg 2026-05-08 22:05:33 +02:00
parent 5a82b866da
commit 0dff974109
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
function git-reset(){
git-reset(){
local branch
@ -13,7 +13,7 @@ function git-reset(){
echo -e "${COLOR_GREEN}✅ Dépôt synchronisé et nettoyé.${NONE}"
}
function git-clone(){
git-clone(){
[[ -z "$1" ]] && echo "Veuillez préciser l'adresse d'un dépôt Git" && return 1
@ -24,4 +24,8 @@ function git-clone(){
git clean -fd
echo -e "${COLOR_GREEN}✅ Dépôt cloné.${NONE}"
}
git-set-url(){
git remote set-url origin "$1"
}

View File

@ -56,7 +56,8 @@ if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
fi
. "${WELCOME_SCRIPT_PATH}/func/git.sh"
alias gsync='git-reset'
alias gclone='git-clone'
alias gitsync='git-reset'
alias gitclone='git-clone'
alias giturl='git-set-url'
#endregion