I have a master branch from which I created branch 1 and 2. The branch 1 I made some change and committed and merged with master. Now that I have already taken a new branch 2 the change made to master is not available there. But I need the change in 1 to continue development of branch 2.
How do I do it?
Update: Some changes has been made in branch2 already. Otherwise I would have just deleted that branch and created branch2 again from master. I need branch2 change as well as the branch1 change that has already been merged to master.
masterbetween creating2and merging1back to master? There is a number of ways you can get those changes into2but the exact way depends on what other changes have been made. You could possibly merge1into2, mergemasterinto2, cherry-pick the exact commits you want to2or perform an interactive rebase. It's hard to say which way would be the best with just the information you've provided so far.