Answer the question
In order to leave comments, you need to log in
Can't switch back to branch, git?
Hello.
Initialized git locally and made the page. I did not commit the changes and created another branch and switched to it.
I created a new branch to do animation, but if I suddenly break everything, I could return to the main branch and start again, so to speak, without problems.
But the trouble is, when I switch to a new branch, I can’t switch back (TO write all changes to the finished page without animations)
I write git checkout master, which gives me an error error: pathspec "master" did not match any file (s) known to git
What am i doing it wrong? thank.
Answer the question
In order to leave comments, you need to log in
A branch is essentially a pointer to a commit. If you haven't made a single commit, then that branch doesn't exist. What do you expect to see in it, by the way?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question