explorer
explorer

Reputation: 313

Unable to find branch in git repo

In the current directory. I had made a repository yesterday from this directory. now:
git branch foo
After doing some changes in the file..
git add .
git commit -m "commit1"
git push.
I am unable to see the branch from my repo on github. While git branch does show this foo.

Upvotes: 0

Views: 1074

Answers (1)

sramij
sramij

Reputation: 4925

What you did is creating a local branch; you will need alternatively to make it a remote branch:

git push <remote-name> <branch-name>

where <remote-name> is usually origin

Upvotes: 1

Related Questions