W
W
Wynell_ru2020-04-29 12:56:06
git
Wynell_ru, 2020-04-29 12:56:06

Is it possible to make a git branch dependent on another?

For example, there is a master branch and a feature branch coming from master, which currently differs from master by one commit.
If I make a commit to master, then the feature will not change. But is it possible to make changes made to master be automatically made to feature as well ? Or at least manually how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Krapivin, 2020-04-29
@Wynell_ru

manually

git checkout feature
git rebase master

or when master changes, merge master into feature
git checkout feature
git merge master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question