- Ajout de la command git origin
This commit is contained in:
parent
5a82b866da
commit
0dff974109
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue