We have 2 branches. One is live and the other is admin. We just moved to a paid github account and I was working on live.
After git push, when i type "git branch", only live shows up. I don't know why. Mistakenly, i typed "git branch admin" instead of "git checkout admin" and I think this created a clone of the live.
I can't access the admin branch anymore! What should I do?
admin
branch you created by mistake (rungit branch -d admin
for that), then fetch theadmin
branch from the remote (rungit fetch
), then check out the remote-tracking branch as a local branch (rungit checkout admin
).