search

Home  >  Q&A  >  body text

Questions about using git code hosting on open source China

I have been using svn before, and recently I started to learn how to use git. The basic usage is almost there, but there is a problem that I haven’t figured out yet. My code is hosted on open source, and it’s easy to develop by myself, but now I and another If an Android person develops together, this requires a main branch and a side branch. How to carry out multi-person cooperative development on open source China? ? ? ? That is, how to create branches and merge code! Ask the gods for answers! Kneel down and thank you!

曾经蜡笔没有小新曾经蜡笔没有小新2771 days ago631

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:48:11

    In multi-person development, the main branch is generally locked when it is master. Multi-person development needs to pull its own branch from the latest main branch master. When the development is completed, you can deploy your own branch for testing. If there is no problem, merge it to the master branch. On the above, if multiple people develop and operate the same file, conflicts may occur. At this time, the conflicts should be resolved manually and the merge is completed.

    There are a lot of documents online, you can refer to them
    http://www.runoob.com/w3cnote...

    Hope it helps you

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:48:11

    The tutorials on how to use git on the Internet are very detailed. Just pick up a project and follow the tutorial and try it slowly to understand. It is best to ask some detailed questions here.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:48:11

    Git workflow

    • git flow(recommended)

    • github flow

    • gitlab flow

    reply
    0
  • Cancelreply