Origin/master not something we can merge

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Look to the right of this box. That is how your post will look to everyone else
<Below this line, add a link to the EXACT exercise that you are asking about.>
https://www.codecademy.com/en/courses/learn-git/lessons/git-teamwork/exercises/git-merge-ii?action=resume

<Below this line, describe in what way does your code behave incorrectly? Include ALL error messages.>
it says
$ git merge origin/master
merge: origin/master - not something we can merge

Does anyone know how to solve this probelm?
<Below this line, add a screenshot of your whole web browser so that we can see what you see.>

Hello @nthu_104062225,

Sorry you’re having issues on this. Please see my post on:

Git merge origin/master

Hope this helps! :slight_smile:

hi @bayoishola20

Thank you for your reply!

I think you did help but I have another issue.

after I typed in what you wrote, it responded " refname ‘origin/master’ is ambiguous

What does that mean and how can I solve it?

Okay. Please, restart console/exercise and do the below:

ls
cd my-quizzes/
Git fetch origin
Git merge origin/master
3 Likes

Dear @bayoishola20

Although I’m not really sure what happened but it worked!!!

Huge thanks

1 Like

Okay,

ls - shows all files in current working directory. It is short for list
cd my-quizzes/ - to change directory. The backward slash is important :slight_smile:
Git fetch - this updates remote-tracking branches but it never changes any of your own local branches, and is safe to do without changing your working copy. This can fetch from either a single named repository or URL, or from several repositories at once (a condition follows for the latter part).

Git merge - This will merge choice sources/repos.

:slight_smile:

4 Likes

Thank you so much for your explicit explanation!

2 Likes

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