新手: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"

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM