My situation is thus:
I do work on two different machines, both of which track a repository (origin) cloned from another source (git.domain_name).
One one machine, my_machine1, I've created a branch to add some functionality, we'll call it myFoo.
One the other machine (my_machine2), I'd like to track (and be able to update and push to my_machine1) the myFoo branch.
On my_machine2, I've done git remote add my_machine1 my_user@my_machine1:/path/to/common/repo
But if I do a git branch -a
I don't see any branches from my_machine1, only from origin. I can see branches on my_machine1 if I do a git ls-branch my_machine1
. Pushing myFoo to origin is not an option.
Is there some way to track/share the myFoo branch between my_machine1 and my_machine2?