Last active
November 9, 2017 12:08
-
-
Save codeocelot/cacccc48d0b1cd69feb5e438169c7081 to your computer and use it in GitHub Desktop.
Git monsters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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