0

I am using Git Tower a git GUI , by mistake i have deleted the repository from GUI this also delete from my local , so there any way to get back the deleted repository ?

Savan
  • 307
  • 1
  • 7
  • Possible duplicate of [Can I recover branch after its deletion in git?](http://stackoverflow.com/questions/3640764/can-i-recover-branch-after-its-deletion-in-git) – Nikson Kanti Paul May 21 '16 at 09:07
  • If the deleted repo has some new commits that have not been updated to another repo, I'm afraid you need a disk recovery tool. – ElpieKay May 21 '16 at 09:17

1 Answers1

0

If you just deleted from local, but exist in remote you can simply checkout from remote

git checkout <branch_name>

if you delete from local & remote, than you can do it from commit sha

git checkout -b <branch_name> <sha>

Many thread exist already for this SO 1, SO 2

Community
  • 1
  • 1
Nikson Kanti Paul
  • 3,394
  • 1
  • 35
  • 51