From fadc0e42fa0056a31a4c3ec4f230bc91127dd5fb Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 16 Jan 2025 20:50:03 +0800 Subject: [PATCH] Aggiorna README.md --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/README.md b/README.md index e69de29..90115e6 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,45 @@ +# Gestione nuovo GIT + Creare nuovo repository da Gitea o da Forgejo e seguire le istruzioni + +## Esempio creazione di GIT_managing solo con il file README + creazione di un nuovo repository da Forgejo dandogli il nome GIT_managing + + ``` + mkdir git + cd git + touch README.md + git init + git checkout -b main + git add README.md + git commit -m "first commit" + git remote add origin https://forgit.patachina.duckdns.org/Fabio/GIT_managing.git + git push -u origin main + ``` +## Esempio di un update + modificare il README.md + + inserire nuovi files + + per aggiornare + ``` + git add --all //caricare tutti i file + git status + git commit -m "improved with multi hosts" // descrizione della modifica + git branch //scoprire il branch main o mastr o .. + git push -u origin main + ``` +## creare un git preso dalla rete e poi farlo proprio, modificato +``` + git clone + cd + sudo rm -R .git +``` + creazione di un nuovo repository da Forgejo dandogli il nome "name" + ``` + git init + git checkout -b main + git add --all + git commit -m "first commit" + git remote add origin https://forgit.patachina.duckdns.org/Fabio/.git + git push -u origin main + ```