Use Git-flow to create and release git Projects

Source: Internet
Author: User
git clone git@github.com/gitflow.gitcd gitflow/git checkout -B developgit push origin develop## Here are all the branches currently availablegit branch -a## Make sure develop branch is tracking origin/develop git branch --set-upstream develop origin/develop## Checkout and track master, you'll need it for git-flowgit checkout -t origin/master## Now initialize your local repo for git-flow, you can accept all the defaults git flow init## Create a feature branchgit flow feature start XXX-999## publish branch to remote repository# git flow feature publish XXX-999git commit -a -m "a message about changes"## push:  push commits up to remote.  Note: add the "feature/" prefixgit push origin feature/XXX-999//////////////////////////////////////////////////////  Finish/Merge////////////////////////////////////////////////////git pull## rebase off the latest develop branch git rebase develop## finish the featuregit flow feature finish XXX-999## delete the branch you published to GitHubgit push origin :feature/XXX-999//////////////////////////////////////////////////////  Making a Release////////////////////////////////////////////////////git checkout developgit status## start the releasegit flow release start '1.1.1'## finish the releasegit flow release finish '1.1.1'## now push them to the remote repositorygit push origin master## make sure tags are pushed as wellgit push --tags

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.