shell - Suddenly can't create local/remote git branches -


not sure how i've managed can't create local , remote branch anymore.

~/myapp(master) > git checkout -b new_feature origin/new_feature fatal: git checkout: updating paths incompatible switching branches. did intend checkout 'origin/new_feature' can not resolved commit? 

i've tried re-cloning app in case .git directory corrupted, no luck. suggestions?

you can't create remote branch way, need first git checkout -b new_feature create new local branch , git push origin new_feature push branch remote.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -