Skip to content

Instantly share code, notes, and snippets.

@jngbng
Created December 29, 2020 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jngbng/f6c28ebec52d58f0734d1d56f83200c9 to your computer and use it in GitHub Desktop.
Save jngbng/f6c28ebec52d58f0734d1d56f83200c9 to your computer and use it in GitHub Desktop.
Git 삭제된 branch head 찾기
git fsck --full --no-reflogs --unreachable --lost-found | cut -d ' ' -f 3 | xargs -n 1 git log -n 1 --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment