Say you have a repository with four branches : master,br2,br3,br4. Also say that in your local directory you've cloned only br2, not the master. So,
$git branch
* br2
Now, I want to merge in br2 the branch br3. Here, git clone --single branch won't work, right? Since I except to have, before merge
$git branch
* br2
br3
I tried the following
$git checkout -b br3 [last commit hash of br3]
fatal: reference is not a tree: 9565138...
How can I do this, i.e. to get br3 in my local repo.
EDIT 1.
$git branch --list --all
*br2
remotes/origin/br2
Also,
$git checkout --track origin/br3
fatal: 'origin/br3' is not a commit and a branch 'br3' cannot be created from it