Open bitfishxyz opened 5 years ago
git branch
git branch newBranchName
git checkout branchName
git merge targetBranchName
they all change hello.txt in third commit change, how to deal with when you are trying git merge testBranch?
git merge testBranch
it will fail merge, and change you hello.txt in working dir.
<<<<<<< HEAD bbbbb ======= aaaa >>>>>>> testBran
you have to add a commit to master branch till this comfilct is not exist.
then git merge testBran
git merge testBran
git only saves changes, do not let them conflict before merge them.
add changes to hello.txt
figure conflict to above two
It's fine!
normal delete
git branch -d branName
force delete
git branch -D branName
show branches list
create new brancj
change branch
merge branch
if it is comfilct
they all change hello.txt in third commit change, how to deal with when you are trying
git merge testBranch
?it will fail merge, and change you hello.txt in working dir.
you have to add a commit to master branch till this comfilct is not exist.
then
git merge testBran
git only saves changes, do not let them conflict before merge them.
add changes to hello.txt
compare to commit 2add changes to hello.txt
compare to commit 2figure conflict to above two
compare to commit 2It's fine!
delete branch
normal delete
force delete