From 871265830cbd0d020c9d0e5bf9605578f8b45093 Mon Sep 17 00:00:00 2001 From: omartek Date: Thu, 19 Sep 2024 17:29:48 +0200 Subject: [PATCH] aggiornamento comando fetch --- operazioni-fondamentali.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/operazioni-fondamentali.md b/operazioni-fondamentali.md index 1aed1bc..bc4a7b4 100644 --- a/operazioni-fondamentali.md +++ b/operazioni-fondamentali.md @@ -49,6 +49,11 @@ Per applicarle anche bisogna eseguire il comando **pull**: [`git pull`](https://git-scm.com/docs/git-pull) +Cancellare rami orfani +[`git fetch --prune`](https://stackoverflow.com/questions/3184555/cleaning-up-old-remote-git-branches) + +Per cancellare + ## Hard reset del main locale (git RESET) Nel caso in cui, per motivi vari, si sospetta che `git pull` possa incasinare il repo, procedere come segue: @@ -89,10 +94,4 @@ Da terminale: git checkout mio-branch git pull --rebase origin main git push --force -``` - -## Creazione tag live nell'upstream - -Poichè in ipstream il tag esiste già bisogna forzarlo. Il comando, andato a buon fine, avvierà l'action _build_and_push.yaml_ - -`git push upstream live --force` \ No newline at end of file +``` \ No newline at end of file