Cannot get passed the 6/10 $ git checkout master


Same issue here. Tried everything. Cannot get passed the 6/10 $ git checkout master

$ git checkout master
error: Your local changes to the following files would be overwritten by checkout:
Please, commit your changes or stash them before you can switch branches.

I used the get help, in the lower right corner. and Reset the whole Exercise. This seemed to get me passed.

Merge conflict

You can switch branches with changes in files, you might want to add them:

git add *

and then maybe you also need to commit them:

git commit -m "message"

or, you can something not covered in the course:

git stash

to stash them, so you can switch branches


A post was split to a new topic: 6. ive tried everything..... nothing works


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.