Mistakenly created a new branch and git won't pull

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?

Answers


If a branch admin already existed, then if you had typed

git branch admin

You should get the error:

fatal: A branch named 'admin' already exists.

This suggests that perhaps you never pulled the branch to your machine, or deleted it in some other way. Why not just pull the branch again from GitHub?

git fetch origin admin    
git checkout -b admin origin/admin

Need Your Help

No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'

android android-actionbar

below is my xml file.It gives me err saying thaty "error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'."

Admob "The following classes could not be instantiated: - com.google.ads.AdView" for Admob 6.0.1 running 2.3.3

android class admob android-4.0-ice-cream-sandwich android-2.3-gingerbread

I have a 2.3.3 android app that I am developing that I would like to add Admob ads onto. The admob ads version is 6.0.1. I follow the directions on googles site to add it and it does not seem to work