Reputation: 110510
I did the following in my git repository.
My question is how can I take the 3 commits from my dev branch and merge to my master branch and append to commit #1?
Upvotes: 0
Views: 122
Reputation: 2066
git checkout master
followed by git merge dev
Note that the above will take all the changes in dev branch and put them into master. If you just want those selective 3 commits which you did in dev branch then you need to use git cherry-pick <commit_id>
. Lets say you have those 3 commits with commit id's as commit_id1, commit_id2 and commit_id3 with commit_id3 being the latest commit, you need to execute the following commands
Upvotes: 1