Qubix
Qubix

Reputation: 4353

Merge changes from parent branch, in GIT

I have the following structure:

----parent_branch
         |
         ------ my_branch

I have worked in my_branch so far, and important changes were made in parent_branch. I want to merge only those changes into my_branch, without messing-up what I've worked on in my_branch. How can I safely do that?

Upvotes: 5

Views: 7040

Answers (1)

LuFFy
LuFFy

Reputation: 9297

It's as easy as to Follow Below Steps :

  1. git checkout my_branch
  2. git merge parent_branch
  3. git push origin my_branch

Upvotes: 6

Related Questions