Programmatically determine if git-flow is initialized

Is there any way to do this? Is the repo read initialized if it just has git -flow directives in .git/config , e.g.

 .... [gitflow "branch"] master = master develop = develop [gitflow "prefix"] feature = feature/ release = release/ hotfix = hotfix/ support = support/ versiontag = v 

?

+5
source share
1 answer

The answer is here . Primarily:

  • Check configuration for gitflow.branch.master and if branch exists in repo
  • Check the configuration for gitflow.branch.develop and if the branch exists in the repo
  • A master branch cannot be the same as a development branch.
  • Make sure all prefixes are configured.
+2
source

Source: https://habr.com/ru/post/1213172/


All Articles