How to get old Git branches onto GitHub?

154 Views Asked by At

I uploaded my git revisioned project to GitHub. From there I can see all my previous commits, but not the old branches.

Should I also push my local .git directory for that?

1

There are 1 best solutions below

1
Oliver Charlesworth On BEST ANSWER

No (and note that "upload" doesn't really mean anything in the Git world.)

If you have other local branches, you need to explicitly push them (try git push --all).