2 Home
Emanuele edited this page 2025-12-25 22:17:04 +01:00
This file contains invisible Unicode characters

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

  1. Comandi Repository 🗂️

    • git clone - Clonare repository remoti
    • git init - Inizializzare nuovi repository
    • git remote - Gestire repository remoti
  2. Staging e Commit 📝

    • git add - Aggiungere file allo stage
    • git commit - Salvare modifiche
    • git status - Verificare stato
    • git diff - Vedere differenze
    • git rm - Rimuovere file
    • git mv - Spostare/rinominare file
  3. Branching e Merging 🌿

    • git branch - Gestire branch
    • git checkout / git switch - Cambiare branch
    • git merge - Unire branch
    • git rebase - Riorganizzare commit
  4. History 📜

    • git log - Visualizzare cronologia
    • git show - Mostrare commit specifici
    • git blame - Trovare autori modifiche
    • git reflog - Cronologia riferimenti
  5. Sincronizzazione 🔄

    • git fetch - Scaricare modifiche
    • git pull - Scaricare e unire
    • git push - Caricare modifiche
  6. Tag 🏷️

    • Creare tag
    • Listare tag
    • Eliminare tag
    • Pushare tag
  7. Stash 💾

    • git stash - Salvare modifiche temporanee
    • Gestire stash multipli
    • Applicare e eliminare stash
  8. Reset e Undo

    • git reset - Annullare commit
    • git revert - Revert sicuro
    • git restore - Ripristinare file
    • git clean - Pulire file non tracciati
  9. Informazioni

    • git ls-remote - Informazioni remote
    • git describe - Descrivere commit
    • git rev-parse - Risolvere riferimenti
  10. Tabella HTTPS vs SSH 📊

    • Comparazione completa comandi
    • Differenze sintassi
    • Casi d'uso
  11. Troubleshooting 🔧

    • 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:

👉 README - Setup Iniziale

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 facoltativo
  • user / username = il tuo username Forgejo
  • repo = nome del repository
  • main / master = branch principale

Buona lettura! 📚

Per domande o suggerimenti, apri una issue sul repository! 🎉