Skip to content
Minsing Log
Go back

English Edition

How to Merge

Programming & CS

What is merge?

It is the process of merging the contents of a newly created branch into the main branch. By making changes in the newly created branch, the main branch

Refer to the merge details

How to merge the GitHub master branch into the main branch

Method

  1. Switch branches (when switching by force, checkout -f main)
# git checkout main
  1. Merge branches (move to the target branch using checkout, then specify the branch to merge—the example below shows merging the test branch into the main branch)
# git merge test

In case of a conflict during merge

Cause

1. Edit manually

2. Cancel the merge operation


Tip)

-> After merging, the changes are reflected only locally, so you need to push the contents of the main branch separately for them to be reflected on GitHub.

-> Whenever possible, merge on GitHub!


How to test

Try testing it using the method in this link

Image URL: http://luckcrow.egloos.com/2631202

공개 여정 구독

글이 올라오면 이메일로 보내드릴게요.

개발, 창업, 배움, 실패와 회고를 짧고 솔직하게 기록합니다. 검색으로 스쳐가는 독자가 아니라 여정을 따라오는 팬을 만들기 위한 뉴스레터입니다.

뉴스레터는 준비 중입니다. 그동안 RSS 로 구독하거나 이메일 로 알림을 요청해 주세요.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
When git add doesn't work even though the file is perfectly fine
Next Post
About add/push-commit/pull-fetch