新手:git回滚代码,合并代码解决冲突

回滚到某个tag:

git reset --hard 70438034dc

git push -f

 

合并---解决冲突---提交:

Step 1. Fetch and check out the branch for this merge request
git fetch origin
git checkout -b "feature-cacheAuth" "origin/feature-cacheAuth"

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up
git fetch origin
git checkout "origin/develop"
git merge --no-ff "feature-cacheAuth"

Step 4. Push the result of the merge to GitLab
git push origin "develop"

 

posted @ 2020-11-11 11:04  天天大傻猫  Views(970)  Comments(0Edit  收藏  举报