Skip to content

Instantly share code, notes, and snippets.

@abonhomme
Created April 3, 2015 20:15
Show Gist options
  • Save abonhomme/baf5c909bd1f147f488a to your computer and use it in GitHub Desktop.
Save abonhomme/baf5c909bd1f147f488a to your computer and use it in GitHub Desktop.
recovering force-deleted & remote-deleted branches #justGitThings
git fsck --full --no-reflogs --unreachable --lost-found | grep commit | cut -d\ -f3 | xargs -n 1 git log -n 1 --pretty=oneline > .git/lost-found.txt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment