Why does git branch -t fail with "Not tracking: ambiguous information"?

Posted by che on Stack Overflow See other posts from Stack Overflow or by che
Published on 2009-09-08T16:53:14Z Indexed on 2010/03/24 3:33 UTC
Read the original article Hit count: 349

Filed under:
|

When I try to create a new branch tracking a remote branch, I get this:

che@nok ~/prj/git-ipc $ git branch -t test main/some_remote_branch
error: Not tracking: ambiguous information for ref refs/remotes/main/some_remote_branch

The source seems to somehow search for branches to track and throws me out because it finds less more than one, but I don't exactly get what it's looking for since I already told it what to track on the command line.

Can anybody tell me what's going on and how to fix it?

© Stack Overflow or respective owner

Related posts about git

Related posts about branch