From 0a33ca4d321ef754b106d8d134698728a2d20553 Mon Sep 17 00:00:00 2001 From: Erika Marcelli Date: Thu, 27 Nov 2025 17:29:25 +0100 Subject: [PATCH 1/4] add: nuovo file --- nuovoFile.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 nuovoFile.txt diff --git a/nuovoFile.txt b/nuovoFile.txt new file mode 100644 index 0000000..80493a5 --- /dev/null +++ b/nuovoFile.txt @@ -0,0 +1 @@ +Ciao From 65aa94fb27d9ce2026fb71ba588912785f724bf4 Mon Sep 17 00:00:00 2001 From: Gabriele Aprile Date: Thu, 27 Nov 2025 18:10:01 +0100 Subject: [PATCH 2/4] add: git1 --- git1/cheatsheet.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 git1/cheatsheet.md diff --git a/git1/cheatsheet.md b/git1/cheatsheet.md new file mode 100644 index 0000000..95ed246 --- /dev/null +++ b/git1/cheatsheet.md @@ -0,0 +1,40 @@ +# GIT 1 - Comandi base +## Perchè ```git``` +- Cronologia trasparente su tutti i cambiamenti dei file +- Ripristinare qualsiasi stato precedente +- Collaborazione tra utenti e copie dinamiche + +## Installazione di ```git``` +### Su Linux +Easy + +### Su Windows +Meh + +### Su MacOS +Easy + +## Configuazione di profilo +``` +$ git config --global user.name "Nome Cognome" +$ git config --global user.email "nome.cognome@studio.unibo.it" +$ git config --global init.defaultBranch main +``` + +## Comandi base +- ```git init``` +- ```git add``` +- ```git commit``` +- ```git status``` + - untracked + - unmodified + - modified + - staged +- ```git log``` +- ```git diff``` +- ```git restore``` +- ```git checkout``` +- ```git stash``` + +## Un piccolo esercizio +[Qui](https://risorse.vercel.app/lab/2025/01-git1-comandi-base.pdf?) \ No newline at end of file From af392965bdcf386df33ce479bca2a686d97f87f2 Mon Sep 17 00:00:00 2001 From: Erika Marcelli Date: Thu, 27 Nov 2025 18:11:08 +0100 Subject: [PATCH 3/4] add: readme cheat sheet --- READMECHEATSHEET.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 READMECHEATSHEET.md diff --git a/READMECHEATSHEET.md b/READMECHEATSHEET.md new file mode 100644 index 0000000..9ff54e6 --- /dev/null +++ b/READMECHEATSHEET.md @@ -0,0 +1,6 @@ +Issue: Git CheatSheet #36 + +Assegnato git1/cheatsheet.md a gabb-OS +Assegnato git2/cheatsheet.md a Prio22 +Assegnato READMECHEATSHEET.md a Makire0103 + From 3d66254fbfe553fa469a534c583316ddb640e0e0 Mon Sep 17 00:00:00 2001 From: Riccardo Priori Date: Thu, 27 Nov 2025 18:34:59 +0100 Subject: [PATCH 4/4] add: git2/cheatsheet.md --- git2/cheatsheet.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 git2/cheatsheet.md diff --git a/git2/cheatsheet.md b/git2/cheatsheet.md new file mode 100644 index 0000000..5db87cf --- /dev/null +++ b/git2/cheatsheet.md @@ -0,0 +1 @@ +branch, merge, reset, restore, checkout, show