Git root - accidentally created a branch? -


can tell me how main git root directory? command prompt pointing to

c:/sites  

but now, command prompt pointing to:

c/sites (new_branch) 

not sure how got there suspect must have accidentally created new branch. tried "git branch" returned no results. tried "git checkout master" got error: "pathspec master did not match file(s) known git."

i'm on windows 7. thanks!

since, not see ls -l .git/refs/heads , implies no longer have master branch (may deleted master branch unknowingly said above weren't sure when accidentally created branch.

to go original master branch, check git log when created new branch. once obtain commit sha , recreate master branch "git checkout -b master ". take default prompt.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -