I would like to try to recover a deleted branch from a remote Atlassian Stash server.
I will explain the steps that I did, which brought me to this situation:
- I initially created a new branch (using the command line) on my local computer (my local OS is Ubuntu 12.04 LTS) from the master branch.
- I then did some work in that branch.
- I then commited my changes to my local copy of the branch. I pushed the new branch to the remote server (I could see that the branch in the web interface of the Atlassian Stash server, so it definitely existed on the remote server)
- I then deleted that branch from the server, using the graphical interface.
- I (stupidly) also deleted the branch from my local computer, using -D option, which forced it deletion even though it had not been merged.
The branch was never merged into any other branch.
But now I realised that I need to get the branch again! (I thought that I had copied the directory to another location, but I had not).
I think that the files are really deleted from my local computer, I have tried to use some tools to recover them, but I cant find them, I dont think I can recover them by just using my local comptuer. I think my best bet is to try to get the branch that was pushed to the remote server (but is no longer visible).
My main question is: is it possible to recover a deleted branch from an Atlassian Stash server (a branch that was not merged into any other branch).
I am hoping that it still exists on the Atlassian Stash server, and that there is some way to get it from there.