Home  >  Q&A  >  body text

公司git使用比较混乱,怎么整?

老是各种冲突,各种覆盖,内斗很严重,感觉没法干活了?咋整?

为情所困为情所困2727 days ago673

reply all(4)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:52:02

    One is that the use of git is not standardized.
    One is that there is a problem with the allocation of development tasks.
    The other is that there is also a problem with project file planning.
    (PS: What is the infighting? Companies with few people say that sometimes it is lonely to use git alone. Ah.)

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:52:02

    .gitignore Ignore those useless things first, code conflicts are not terrible.

    For example, Mac 都有一个文件 .DS_StoreIf you don’t ignore the fact that you and people who use Apple computers pull the code, there will be conflicts.

    Don’t have multiple people operating a file at the same time. One or two are fine. If all the front-ends of the company edit it, it will give you a headache when you combine the code.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:52:02

    I don’t know what infighting you are talking about. . .

    It’s good if you follow git workflow. Link: https://guides.github.com/int...


    Another option: change companies

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:52:02

    I think it is a process issue. There must be a person who can review the code, and then push the code. Only after the review is it allowed to be merged into the main branch, and then the local branch is not allowed to be forced to be pushed to the server. There is very useful code. Hosting platform software, such as gitlab, allocates corresponding git permissions, and everyone can work easily

    reply
    0
  • Cancelreply