Hope this helps A git branch is just a reference to a commit (with some extra semantics for commits to move the branch to reference the new commit). So the only way to "recover" a deleted branch is to re-create it by specifying the commit:
help you fix your problem The related questions that SO offer me only answer simple cases that can be solved with a pull - however, that doesn't work well, as you'll see below. , You can rebase your fork on to master, via:
git rebase origin/master
git recover branch deleted on remote and local folder deleted
may help you . Background When you delete a branch (git branch -d ...), it removes the branch name (the pointer to the tip commit) and the branch's reflogs. The commits themselves, however, stick around for a while, normally about three months, before being garbage-collected, as they're still referenced by one of the reflogs, the one for HEAD.
wish of those help If you have deleted your branch locally, remotely and it is not present when you type git reflog there is no way to use git to recover your branch. Furthermore, due to the way git stores branches (in a single workarea, compared to SVN that stores each branch in a subdirectory) the probability of successfully recovering the branch using data-recovery tools is close to zero.
How to merge branch of forked repo into master branch of original repo?