I am trying to copy my entire p4 tree into a git tree.
I have two branches under my p4 client
 //dev/... //user/dev/...
 //infra/lib/... //user/dev/memo/lib/... 
Now when I do git p4 clone --use-client-spec --detect-branches //dev only 
the dev branch is being copied and the infra branch is not being copied. 
I even tried using 
git p4 clone --detect-branches //dev@all
Importing from //dev@all into dev
Initialized empty Git repository in /auto/mem-proj02/user/new_dir/dev/.git/
Importing revision 11477 (100%)
Not checking out any branch, use "git checkout -q -b master <branch>"
This also doesn't copy infra branch.
So can anyone please help me sync/clone all the branches in p4 into git.
I have also tried How to clone branch with git-p4? 
But I was not able to achieve it .
Please help me !!!