I have a git branch related question.
For example, from the origin/master codebase, I switch to a branch, b1
:
git checkout -b b1
Here, I update the code, then commit the changes.
Then, I switch to another branch, b2
:
git checkout -b b2
Here, b2
depends on b1
, b2
can see b1
's changes; so based on b1
's code, I further modify the code-base, commit the changes.
My question is: Can I just push the code change in b2
, without the changes in b1
?
Note: in my condition, I don't want to push the changes in b1.
Thanks