search

Home  >  Q&A  >  body text

git - Collaborate with others to write a solution to a problem. Every time a pull request is issued, the previously pulled files are also included. How to solve this problem?

Because I only want to keep the code I wrote locally, I forked other people’s initial warehouse and synchronized it with other people’s warehouses. After you finish writing it regularly, push it up and then send a pull request. But I found that when sending a pull request, more and more files were included. How to include only newly added files?

给我你的怀抱给我你的怀抱2805 days ago646

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-02 09:54:04

    You need to synchronize with other people’s warehouses before submitting a pull request. You can use git pull -r <别人仓库的地址> <分支>,
    and remember to merge the approved pull request in advance.

    reply
    0
  • Cancelreply