Home:ALL Converter>Is a git user not supposed to merge INTO another branch?

Is a git user not supposed to merge INTO another branch?

Ask Time:2017-08-16T18:27:59         Author:René Nyffenegger

Json Formatter

From my limited understanding, when I want to merge a branch with git, I need to be in the branch into which I want to merge.

However, I'd like to merge from the current branch into another branch, but that doesn't seem easily possible (although there are some solutions on the internet for that).

So, I guess that I am actually not supposed to merge into another branch. Is this the case and if so, why?

Edit It was suggested that this question is a duplicate of How to merge the current branch into another branch. However, I am not asking on how to merge inot another branch, but rather why git discourages a user to merge into another branch.

Author:René Nyffenegger,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/45711110/is-a-git-user-not-supposed-to-merge-into-another-branch
yy