Вопрос

Is it correct to say that the following two commands

git merge X
git rebase X

only change/affect the current branch and not X (or any other branch)?

I think I understand what both commands do, but I want to make sure my assumption is correct.

Это было полезно?

Решение

Yes, your assumption is correct. Both commands will affect only the branch you're on when you run the command.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top