-
So I am trying to add my name and projects to this list here: Zero to Mastery JavaScript20 Projects. I had made a PR to Zero to Mastery's repo about 20 days ago and it has not been merged / checked / or anything. The first PR is PR number 98. So I made the first PR 20 days ago, which added about 4 or 5 of my projects to the readme as well as add live links to the projects I already added. As I said, this was not merged or reviewed. I did a Git Pull from the master branch and here is where there are merge conflicts. I see when I did the git pull, it is pulling the versions of my links without the live links. So in the above example, (I am Russ Perry), The old version that I changed with PR1 is in green. The pull request I am trying to do is what is in blue, which has my old version along with someone else who had thier PR merged before mine. I am not sure how to handle this. If I accept current change, it gets rid of the other person's commit. If I accept incoming, I lose everything I did before. I tried accepting both but I think I broke something when I did that. I have never done a merge conflict before, so I am not really sure how to handle this. Looking at my old PR, it looks like it automatically created a second PR with changes and saying there were conflicts? I didn't push anything to this repo after I tried merging. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
You can accept both, by manually merging them, I will create pseudo example: Conflict<<<<<<< HEAD
+ Russ Perry - [GitHub](GitHub.com) [ViewLive[(netlify.com)
=======
+ Josue Cedenoo - [GitHub](GitHub.com) [ViewLive[(netlify.com)
+ Russ Perry - [GitHub](GitHub.com)
>>>>>>> abcdef ResolutionKeep their changes and the changes you want + Josue Cedenoo - [GitHub](GitHub.com) [ViewLive[(netlify.com)
+ Russ Perry - [GitHub](GitHub.com) [ViewLive[(netlify.com) Once you are happy with the manual merge conflict, you can do
Side noteDoes your new PR rely on the previous PR you created? If
|
Beta Was this translation helpful? Give feedback.
-
@eddiejaoude So my new changes do not rely on my first one being accepted. Do I need to re-fork their project? Or do I just create a new branch entirely without pulling what they have? If I pull what they have, I get the merge conflict. |
Beta Was this translation helpful? Give feedback.
@eddiejaoude So my new changes do not rely on my first one being accepted. Do I need to re-fork their project? Or do I just create a new branch entirely without pulling what they have? If I pull what they have, I get the merge conflict.