markdown git,PR流程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown git,PR流程相关的知识,希望对你有一定的参考价值。

# PR Process
### Enable PR process
repo -> setting -> branches -> Protected branches(choose a branch) -> 
check protect this branch + require pull request reviews before merging

Refer to: [Enable PR Process](https://help.github.com/articles/enabling-required-reviews-for-pull-requests/)

### Code Check In Process After Enable PR

	1. git checkout -b feature/XXX | defect/XXX  <- equals to: git branch feature/XXX + git checkout feature/XXX
	2. make some change
	3. git checkout master + git pull <- make sure your master is head version
	4. git checkout feature/XXX <- go back to feature branch
	5. git merge master <- do code sync before you upload your branch, there maybe some conflict, resolve it
	6. git push --set-upstream origin feature/XXX <- go to github page, there will be a new branch show out there
	7. click pull/request button and go merge process

Draw a map if possible

### Other Source
[Video Of PR](https://www.youtube.com/watch?v=oFYyTZwMyAg)

以上是关于markdown git,PR流程的主要内容,如果未能解决你的问题,请参考以下文章

markdown Git工作流程

markdown 简化的Git流程

markdown Git工作流程

markdown 日常工作流程中常见的git命令

markdown 日常工作流程中常见的git命令

markdown 日常工作流程中常见的git命令