Reputation: 11
I was work on home PC and mistakenly removed branch before making merge with dev. Now I don't have access to my PC, but I really need those data.
git fsck --full --no-reflogs | grep commit
or
git reflog
does not help because commits were made on other PC. Name of deleted branch I forget =(
Upvotes: 1
Views: 1010
Reputation: 2385
If you pushed before you deleted it, and didn't delete the branch you pushed on the remote you pushed to, it will still be there. git fetch
/pull
that remote to get your branch.
If you didn't push, sorry - the data never left your home PC. You'll have to either SSH into your home PC or wait until you get home to run git reflog
.
Upvotes: 1