from https://jeffkreeftmeijer.com/git-flow/ and https://github.com/nvie/gitflow/
# on centos
curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh
chmod +x gitflow-installer.sh
INSTALL_PREFIX=/path/to/install/git-flow ./gitflow-installer.sh
# add /path/to/install/git-flow to PATH
To initialize a new repo with the basic branch structure, use:
git flow init [-d]To list/start/finish feature branches, use:
git flow feature
git flow feature start <name> [<base>]
git flow feature finish <name>To push/pull a feature branch to the remote repository, use:
git flow feature publish <name>
git flow feature pull <remote> <name>- A new branch ‘feature/<name>’ was created, based on ‘develop’
- You are now on branch ‘feature/authentication’
- The feature branch ‘feature/<name>’ was merged into ‘develop’
- Feature branch ‘feature/authentication’ has been removed
- You are now on branch ‘develop’
To list/start/finish release branches, use:
git flow release
git flow release start <release> [<base>]
git flow release finish <release>[返回首页]