Reputation: 32823
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
Reputation: 992747
First, change back to the master
branch:
git checkout master
Then, merge the branch abc
:
git merge abc
Upvotes: 4