This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Wiki - Guida Completa Git HTTPS
Benvenuto nel Wiki della guida completa per utilizzare Git con HTTPS su Forgejo!
📑 Indice
Questa documentazione copre tutti i comandi Git essenziali con sintassi, spiegazioni dettagliate ed esempi pratici usando git.emanuelegori.uno.
Capitoli
-
git clone- Clonare repository remotigit init- Inizializzare nuovi repositorygit remote- Gestire repository remoti
-
git add- Aggiungere file allo stagegit commit- Salvare modifichegit status- Verificare statogit diff- Vedere differenzegit rm- Rimuovere filegit mv- Spostare/rinominare file
-
git branch- Gestire branchgit checkout/git switch- Cambiare branchgit merge- Unire branchgit rebase- Riorganizzare commit
-
History 📜
git log- Visualizzare cronologiagit show- Mostrare commit specificigit blame- Trovare autori modifichegit reflog- Cronologia riferimenti
-
git fetch- Scaricare modifichegit pull- Scaricare e uniregit push- Caricare modifiche
-
Tag 🏷️
- Creare tag
- Listare tag
- Eliminare tag
- Pushare tag
-
Stash 💾
git stash- Salvare modifiche temporanee- Gestire stash multipli
- Applicare e eliminare stash
-
git reset- Annullare commitgit revert- Revert sicurogit restore- Ripristinare filegit clean- Pulire file non tracciati
-
Informazioni ℹ️
git ls-remote- Informazioni remotegit describe- Descrivere commitgit rev-parse- Risolvere riferimenti
-
- Comparazione completa comandi
- Differenze sintassi
- Casi d'uso
-
- Errori comuni
- Soluzioni
- Best practices
🎯 Come usare questa guida
Ogni pagina del wiki contiene:
✅ Sintassi del comando - Come si usa
✅ Spiegazione dettagliata - Cosa fa e quando usarlo
✅ Esempi pratici - Con URL reali di git.emanuelegori.uno
✅ Opzioni comuni - Parametri utili
✅ Note e avvertenze - Tips e warning importanti
🚀 Quick Reference
Workflow Base
# 1. Clone
git clone https://git.emanuelegori.uno/user/repo.git
cd repo
# 2. Lavora
# (modifica file...)
# 3. Stage e Commit
git add .
git commit -m "Messaggio"
# 4. Push
git push origin main
Comandi Più Usati
git status # Stato repository
git add <file> # Staging file
git commit -m "msg" # Commit
git push # Push al remote
git pull # Pull dal remote
git log --oneline # Storia compatta
git branch # Lista branch
git checkout <branch> # Cambia branch
📖 Prima di iniziare
Se non hai ancora configurato Git con HTTPS, leggi prima:
Il setup include:
- Generazione Personal Access Token (PAT)
- Configurazione credenziali
- Credential helper
- Prima configurazione Git
💡 Convenzioni usate in questa guida
Negli esempi:
<parametro>= sostituisci con il tuo valore[opzionale]= parametro facoltativouser/username= il tuo username Forgejorepo= nome del repositorymain/master= branch principale
Buona lettura! 📚
Per domande o suggerimenti, apri una issue sul repository! 🎉