Skip to content

Instantly share code, notes, and snippets.

@marrselo
Created December 5, 2012 16:42
Show Gist options
  • Save marrselo/4217259 to your computer and use it in GitHub Desktop.
Save marrselo/4217259 to your computer and use it in GitHub Desktop.
GIT comandos utiles
# listar los branchs por ordenados por fecha commit , y autor
git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short) %(committerdate:short)%(authorname)'
@marrselo
Copy link
Author

marrselo commented Feb 7, 2013

git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname) %(committerdate) %(authorname)' | sed 's/refs/heads///g'

git reflog (lista los commit se ven los id de los HEAD)
con $ git reset --hard HEAD@{nro} (se pasa a esa version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment