git回滚

文章内索引
[显示]

git回滚

git


在此输入正文

67c0d0b4 这个是上一个版本的分支 这个是版本号 67c0d0b49535dd0cbc03a1d858409baed04475ee
Feature/v3.1.0.0708

git reset –hard 67c0d0b49535dd0cbc03a1d858409baed04475ee
git push -f

合并分支有冲突

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b test1 origin/test1
Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout v1.apollo.0719
git merge –no-ff test1
Step 4. Push the result of the merge to GitLab

git push origin v1.apollo.0719
Tip: You can also checkout merge requests locally by following these guidelines.

摸索中的流程

1.正常开发使用develop分支。

2.多任务开发时,通过release分支,开新分支。

3.提测merge到test分支。

4.发布使用test分支,合并到release分支。

5.每次在发布新的release前,对前一个release打一个tag方便回溯。

6.多任务的分支最终需要合并到develop分支上。


©版权声明:本文为【翰林小院】(huhanlin.com)原创文章,转载时请注明出处!

评论

  1. 文章不错,定性分析

发表评论

电子邮件地址不会被公开。