/
merge-conflicts
merge-conflicts
Easily simulated as follows
Create a local repo
add a text file with some content to the local repo
Commit the changes on the local repo
Create remote repo
add a text file with something unique in it
Attach the remote repo to the local repo using git remote add <remote url>
Run the command git push origin master - a merge conflict message will appear
run the command git pull origin master - git will open the default editor and ask you to enter a message explaining how the merge conflict was resolved - enter a message and save the file
run the command git push origin master
Local and Remote should now be synced