Suppose I cloned branch1
and made new branch branch2
where I made changes to some files. However some new files are added in branch1
after that and some changes are made in previous files of branch1. I want those files and changes to be also in branch2
. How to do this using git ?
branch1->some new files added and some previous files modified
|
|cloned
|
branch2->modified few files->add new files in branch1 here also as well as changes in old files
Can we use rebasing here ?
I will try to elaborate more pictorially :
branch1-a-b-c-d-e-f-g-h
|
|
|clone
|
|
branch2-x-y-z
What I want :
branch1-a-b-c-d-e-f-g-h
|
|
|clone
|
|
branch2-x-y-a-z-b-c-d-e-f-g-h
How to use rebasing here ?