My scenario is I've two branches master
and feature_swap
I want to work parallelly with these two, they have different basic functionality. sometimes I may update some utility classes in master that I want to test with the other branch. Then I might even carry the same changes in another branch If I get expected output.
I've already created two branches. and updated master with few changes in util
. and I want to test the same with feature_swap
. (without merging)
Whats the best way to do it ? or how should I do it ?
If I just do git pull feature_swap
it auto merges in the wrong way. What I want is the basic functionality of feature_swap (swaping some data before reporting) would stay as it is. all other implementations may be changed when master
changes
Update
I am a noob :( and first time doing branching. My project is on bitbucket. There is a Tool to compare branches. If I put master on left and feature_swap
at right. It shows
$ git checkout feature_swap
$ git merge remotes/user_name/project_name/master
But I think If I do that it will merge master
-> feature_swap
(am I wrong). But I want those changes but keep developing feature_swap
in parallel.
and also is it a problem is developing feature_swap
in a parallel flow even if I merge from master
?