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 ?
            Asked
            
        
        
            Active
            
        
            Viewed 40 times
        
    0
            
            
        - 
                    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 Answers
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>
 
    
    
        Community
        
- 1
- 1
 
    
    
        Nikson Kanti Paul
        
- 3,394
- 1
- 35
- 51
- 
                    This is about to get the branch , but i also lost all the files so this is not a git directory right now, i can't run command over their . – Savan May 21 '16 at 09:15
- 
                    
