Simply record git development specifications

Simply record git development specifications

  1. Create a branch: Everyone pulls down the project, then switches to the dev branch, and creates a branch named with the pinyin of your name, such as zhenlin, and then in 自己的分支上进行开发.

  2. Create a problem: create one when you want to develop a function 大概的描述的问题, as follows

Insert picture description here

  1. Submit specific code: When submitting the code of this function 关联上这个代码的问题id (下图), the submission information is similar to " #1 完成登陆页面的基本布局". Try 完整简洁to explain your own改动

Insert picture description here

  1. The problem development at a certain stage is completed: keep the last temporary code ( add . commitafter, 先不要push) use rebasethe 别人的devprogress同步到自己分支

1. Switch to the dev branch, git pull origin dev(pull the latest)
2. Switch back to your own branch, git rebase dev
3. After prompting the completion of rebase,git push origin 自己的分支

This completes the submission.

5. Problem development completed: 创建合并请求and 指派给组长(zhenlin)let组长把代码合并到dev分支

Insert picture description here

Insert picture description here

[External link image transfer failed. The source site may have an anti-leech link mechanism. It is recommended to save the image and upload it directly (img-OyXhKvbc-1615015691822)(C:%5CUsers%5C%E4%B8%B6Melody%5CAppData%5CLocal%5CTemp% 5Cksohtml18548%5Cwps10.jpg)]

The development specifications of git are probably these, mainly to facilitate everyone's synchronization and collaboration!

Guess you like

Origin blog.csdn.net/weixin_43438052/article/details/114443260