使用git-flow创建和发布git项目
2013-02-26 12:37
555 查看
git clone git@github.com/gitflow.git cd gitflow/ git checkout -B develop git push origin develop ## Here are all the branches currently available git 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-flow git checkout -t origin/master ## Now initialize your local repo for git-flow, you can accept all the defaults git flow init ## Create a feature branch git flow feature start XXX-999 ## publish branch to remote repository # git flow feature publish XXX-999 git commit -a -m "a message about changes" ## push: push commits up to remote. Note: add the "feature/" prefix git push origin feature/XXX-999 //////////////////////////////////////////////////// // Finish/Merge //////////////////////////////////////////////////// git pull ## rebase off the latest develop branch git rebase develop ## finish the feature git flow feature finish XXX-999 ## delete the branch you published to GitHub git push origin :feature/XXX-999 //////////////////////////////////////////////////// // Making a Release //////////////////////////////////////////////////// git checkout develop git status ## start the release git flow release start '1.1.1' ## finish the release git flow release finish '1.1.1' ## now push them to the remote repository git push origin master ## make sure tags are pushed as well git push --tags
相关文章推荐
- 如何使用 git 在 GitHub 上创建一个项目
- 创建一个Git项目并且发布到Github
- Github创建项目并使用git将本地项目push到github
- 使用idea创建springboot项目并打成war包发布到tomcat8上
- 如何使用git创建项目,创建分支
- Linux搭建GIT 使用Eclipse创建并上传Git项目 EGit操作
- IntelliJ初使用:IntelliJ使用git发布项目
- 如何使用git创建项目,创建分支
- Linux搭建GIT 使用Eclipse创建并上传Git项目 EGit操作
- 如何使用git创建项目,创建分支
- 第一次使用GIT,创建仓库并提交项目代码
- 使用MVC模式开发的Blog发布项目-----2 Controller部分的创建
- 如何使用git创建项目,创建分支
- Atitit 项目版本管理gitflow 与 Forking的对比与使用
- 使用 flow.ci 快速发布你的项目文档
- oschina git 使用过程一:项目创建
- Github创建项目并使用git将本地项目push到github
- 使用 flow.ci 快速发布你的项目文档
- 如何使用git命令提交项目到github并创建不同的版本控制
- 在VS下使用 GitFlow管理项目开发