Om3ga
Om3ga

Reputation: 32823

How to merge changes back to the HEAD

Here is what I did

I create a branch abc. Then I created two text files one.txt and two.txt. Then I commit them to branch abc. Then I removed the file one.txt from the branch and commit these changes to the branch. Now I want to merge these changes back into the HEAD. How can I do this last part?

Upvotes: 3

Views: 54

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 992747

First, change back to the master branch:

git checkout master

Then, merge the branch abc:

git merge abc

Upvotes: 4

Related Questions