Checking incoming and outgoing files inside branches without going to the master branch
2 answers
You can:
-
merge branch2 into branch 3
git checkout branch3 git merge branch2
-
or, depending on what you want, force branch3 to become branch2
git checkout branch2 git branch -f branch3 branch2 git checkout branch3
(which would replace the history of branch 3 with one of the branches2)
In both cases, the commit to master will not change.
+2
source to share