수색…


통사론

  • git flow <subcommand>
  • 자식 흐름 초기화
  • git flow [기능 | 릴리스 | 핫픽스] [시작 | 끝]

매개 변수

부속 명령 세부
초기화 분기 모델을 지원하는 새로운 git repo를 초기화하십시오.
특색 지사를 관리하십시오.
해제 릴리스 분기를 관리하십시오.
핫픽스 핫픽스 분기를 관리하십시오.

비고

로컬로 5 개의 공통 브랜치에서 작동

Gitflow의 가장 일반적인 사용 사례 중 하나

  1. 저장소 초기화 및 분기 정의
$ git flow init
    # if you use default setup, you'll define six types of branches:
    #
    # main branches (lives forever)
    #
    #   1. master:  for production releases
    #   2. develop: for "next release" development
    #
    # supporting branches
    #
    #   3. feature: for a product feature
    #   4. release: for preparation of a new production release
    #   5. hotfix:  for resolving critical bug of production version
    #   6. support
    #
    # also, two main branches are created: master, develop
  1. 지형지 물 시작완료
$ git flow feature start my_feature
    # create branch 'feature/my_feature' based on the 'develop'

    # made development and commits...

$ git flow feature finish my_feature
    # merge 'feature/my_feature' back to the 'develop'
    # delete 'feature/my_feature'
  1. 릴리스 시작완료
$ git flow release start my_release
    # create branch 'release/my_release' based on the 'develop'

    # made bug fixes...

$ git flow release finish my_release
    # merge branch 'release/my_release' to the 'master' and add tag
    # merge branch 'release/my_release' back to the 'develop'
    # delete 'release/my_release'
  1. 핫픽스 시작완료
$ git flow hotfix start my_hotfix
    # create branch 'hotfix/my_hotfix' based on the 'master'

    # made some hotfixes...

$ git flow hotfix finish my_hotfix
    # merge branch 'hotfix/my_hotfix' back to the 'master' and add tag
    # merge branch 'hotfix/my_hotfix' to the 'develop'
    # delete 'hotfix/my_hotfix'


Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow