I have a local git repository (which was cloned from a remote origin branch):
~/foo
I had some branches in the local repository:
~/foo$ git branch
*master
branch1
branch2
The origin repository has a branch branch3 that my local does not have, and I wanted to add it to my local. I did the following, hoping branch3 will be added to my local repository:
~/foo/..$ git clone -b branch3 --single-branch git@github.com:<localrespository_name>.git
After that, I see that there is only branch3 in the local respository:
~/foo$ git branch
*branch3
Where are my branch1, branch2, and how can I recover them?
I don't have copies of branch1, branch2 in the remote repository.
 
    