search

Home  >  Q&A  >  body text

github - How does git resolve remote library conflicts?

It is a warehouse that is locally associated with github

Then the github repository independently modified some files

Now we need to submit the code locally to the github repository

There will be conflicts

给我你的怀抱给我你的怀抱2738 days ago1093

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-25 15:10:31

    As mentioned, you can first perform git pull to pull down the remote code, then merge it locally and re-commit it

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-25 15:10:31

    1. First git pull update the remote code

    2. Execute git status Follow the prompts to resolve conflicting files

    3. Then git add -A && git commit submit the version that resolves the conflict
      Now the version will be clean

    reply
    0
  • Cancelreply