Skip to content

Commit

Permalink
Accept Merge Request Huxpro#6: (develop2 -> develop)
Browse files Browse the repository at this point in the history
Merge Request: 新增开发人员操作流程
Created By: @Fang
Accepted By: @Fang
URL: https://weijunfang.coding.net/p/blog2/d/blog2/git/merge/6
  • Loading branch information
10wjfang committed Apr 8, 2021
2 parents a734ab5 + 3c0f552 commit 873fdd3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _posts/2018-12-06-git-again.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ git branch //查看本地分支
git branch -r //查看远程分支
```

## 创建同时切换分支

```sh
git checkout -b dev
```

## 创建分支

```sh
Expand Down Expand Up @@ -72,6 +78,22 @@ git merge master //合并master到branch分支
git rm -r --cached .
```

## 开发人员操作流程

假如名为张三的同志,开发完成,他的具体操作顺序应该是:

1、git checkout develop,需要先把自己分支上的代码add, commit

2、git pull origin develop,如果有冲突,先与伙伴商量解决,完成之后add, commit

3、git checkout zhangsan

4、git merge develop,与本地develop分支进行合并,并解决冲突,完成之后add, commit

5、git push origin zhangsan,把本地zhangsan分支推送到远程zhangsan分支

6、远端查看改动是否正确,然后通过远程创建合并,完成远程zhangsan合并到远程develop分支

## IDEA安装.ignore插件

File -> Settings -> Plugins -> Browser repositories
Expand Down

0 comments on commit 873fdd3

Please sign in to comment.