Basically i cannot see a branch on a different computer. I run
git branch -a
and on home computer I get
C:\learn ror\sample_app [filling-in-layout]> git branch -a
* filling-in-layout
master
static-pages
remotes/origin/filling-in-layout
remotes/origin/master
remotes/origin/static-pages
On the work pc I get almost the same result, except the “filling-in-layout” branches(local and remote).
What should I do?
To share branches, you need to push your branches on the machines where they’re created, and setup remote tracking branches on the other machines:
Try this, on the machine that has the branch:
and this on the machine that doesn’t:
Git will automatically set up a remote tracking branch named
<branch name>if you try to check out a branch that only exists on a remote.