Skip to content

Instantly share code, notes, and snippets.

@riotera
Created March 26, 2012 18:19
Show Gist options
  • Save riotera/2208437 to your computer and use it in GitHub Desktop.
Save riotera/2208437 to your computer and use it in GitHub Desktop.
Comandi Git
Crea nuovo branch, fa il checkout e importa la branch remota:
git checkout -b test origin/test
--------------
Resetta il repo ad un certo commit (elimina lo storico precedente e gli eventuali uncommit)
git reset --hard <hash>
--------------
Per verificare i commit prima di fare un merge
git fetch
git log master..origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment