I was on a branch called make-monolith-ids-constant.
I ran these commands in the terminal.
git checkout make-monolith-ids-constant
git fetch origin master
git rebase origin/master
I now have a merge conflict I'm trying to resolve on the website and this is all that shows up.
<<<<<<< make-monolith-ids-constant
@link-click="setAddPreviewText"
=======
>>>>>>> master
If I would like to keep only the changes from the master branch what would I delete here?
What you are seeing are Git's merge conflict markers, which have been inserted into the source file, pending resolution. The following code given reads as:
In the parent branch
make-monolith-ids-constant, there is the following code:In the
masterbranch, this does not appear. So, you need to decide whether or not you want to keep this line. In your localmake-monolith-ids-constantbranch, delete the<<<<<<<,=======, and>>>>>>>markers, leaving behind either that line, or not line at all.Then,
git addthis source file, commit, and then push yourmake-monolith-ids-constantbranch back to GitHub: