git-flow: how to checkout release branch from origin? -


what perferred workflow pull published release branch central repo using git-flow?

eg:
mike made release branch, published through "git flow release publish 1.0"
jane work on release branch too, how pull central repo continue working git flow on particular branch?

  • create branch herself locally through git flow release start 1.0 , git pull?
  • create tracking branch locally through git git checkout -b release/1.0 origin/release/1.0 , continue there (does git flow work on branch way?)

git flow release (and feature) have "track" command simplify you're trying do. set local tracking branch branch that has been published, , switch it, this:

git flow release track 1.0 

or

git flow feature track my-feature-branch 

here's code excerpt the gitflow source release "track" command:

cmd_track() {     parse_args "$@"     require_version_arg      # sanity checks     require_clean_working_tree     require_branch_absent "$branch"     git_do fetch -q "$origin"     require_branch "$origin/$branch"      # create tracking branch     git_do checkout -b "$branch" "$origin/$branch"      echo     echo "summary of actions:"     echo "- new remote tracking branch '$branch' created"     echo "- on branch '$branch'"     echo } 

helpful git flow command line arguments


Comments