编程知识 cdmana.com

Git basic operation [3] -- screenshot attached

Resolve branch merge conflicts

for example : I have two branches , One is master One is fenzhi1, Now? I'm on the same file in both branches test3.txt Operate on the contents of , And submit to the local library , After operation , I need to merge these two branches
 Insert picture description here
 Insert picture description here
Command for merge operation :git merge Branch name to be merged
 Insert picture description here

resolvent : Artificial decisions test3.txt What should be kept in , Yes, delete all ? Or keep it all ? Or keep some ? After the decision , then test3.txt Conduct add and commit Operation can resolve the conflict
 Insert picture description here
 Insert picture description here

Create an alias for the remote library address locally

command :git remote add Alias Remote library address
 Insert picture description here

Push local library to remote library

command :git push Alias Branch name
 Insert picture description here

Clone files from a remote library to a local database

command :git clone Address of the remote warehouse
 Insert picture description here
 Insert picture description here

explain : Cloning actually does three actions
1. Auto initialize local warehouse
2. Clone the remote warehouse completely to the local database
3. Created the alias of the remote library for us

版权声明
本文为[Programmer base]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/10/20211002150159642z.html

Scroll to Top