Skip to content

Instantly share code, notes, and snippets.

@codeocelot
Last active November 9, 2017 12:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeocelot/cacccc48d0b1cd69feb5e438169c7081 to your computer and use it in GitHub Desktop.
Save codeocelot/cacccc48d0b1cd69feb5e438169c7081 to your computer and use it in GitHub Desktop.
Git monsters
# What the fuck just happened to this file?
git reflog -p --since=yesterday -- $file
# I forgot my branch name. What am I working on?
git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)'|column -ts'|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment