git flow的安装和使用
确保安装了git
1.windows系统下安装
进入cmd
clone github上的gitflow到一个文件夹下 我这里clone到 c:\gitflow
git clone git://github.com/nvie/gitflow.git c:\gitflow
这个时候c盘下得到gitflow,进入c盘gitflow目录下contrib文件执行
c:\gitflow\contrib\msysgit-install.cmd "C:\Program File\Git" (ps:后面是Git的安装目录)
执行后会看到一些档案被复制到git的安装目录下
(安装过程中如果有提示需要getopt.exe和libintl3.dl 网上下载这两个文件 然后拷贝到c:\\windows\system32下即可)
C:\gitflow\git-flow -> C:\Program Files (x86)\Git\bin\git-flow
C:\gitflow\git-flow-feature -> C:\Program Files (x86)\Git\bin\git-flow-feature
C:\gitflow\git-flow-hotfix -> C:\Program Files (x86)\Git\bin\git-flow-hotfix
C:\gitflow\git-flow-init -> C:\Program Files (x86)\Git\bin\git-flow-init
C:\gitflow\git-flow-release -> C:\Program Files (x86)\Git\bin\git-flow-release
C:\gitflow\git-flow-support -> C:\Program Files (x86)\Git\bin\git-flow-support
C:\gitflow\git-flow-version -> C:\Program Files (x86)\Git\bin\git-flow-version
已经复制了7个档案
C:\gitflow\gitflow-common -> C:\Program Files (x86)\Git\bin\gitflow-common
C:\gitflow\gitflow-shFlags -> C:\Program Files (x86)\Git\bin\gitflow-shFlags
已经复制了2个档案
C:\gitflow\shFlags\src\shflags -> C:\Program Files (x86)\Git\bin\gitflow-shFlags
已经复制了1个档案
window cmd窗口下输入
>git flow
Available subcommands are:
init Initialize a new git repo with suppo
feature Manage your feature branches.
release Manage your release branches.
hotfix Manage your hotfix branches.
support Manage your support branches.
version Shows version information.
这个时候表示已经安装成功了
2.使用(具体使用看我转载的一篇文章)
1.git flow init 利用gitflow为我们创建master分支和develop分支
2.git flow feature start <your feature>
git flow feature finish <your feature>
开发一个功能
3.git flow feature publish <name>
git flow feature pull <remote> <name>
上传到服务器或者更新
4.git flow release start <release>
git flow release finish <release>
发布版本
5.git flow hotfix start <release>
git flow hotfix finish <release>
修补bug
按照这样的使用方法,可以实现比较规范的git开发
当然,在代码提交的时候,使用git,git flow只是添加了流程方面的几个脚本
git flow的安装和使用的更多相关文章
- Windows环境下msysgit安装git flow
git flow是git的一个扩展集,它基于Vincent Driessen的分支模型,能够用来简化代码的版本号公布流程. 本文讲述怎样为msysgit安装git flow. 下载getopt.exe ...
- Git 在团队中的最佳实践--如何正确使用Git Flow
我们已经从SVN 切换到Git很多年了,现在几乎所有的项目都在使用Github管理, 本篇文章讲一下为什么使用Git, 以及如何在团队中正确使用. Git的优点 Git的优点很多,但是这里只列出我认为 ...
- Git 在团队中的最佳实践--如何正确使用Git Flow[转]
原文地址:http://www.cnblogs.com/cnblogsfans/p/5075073.html Git的优点 Git的优点很多,但是这里只列出我认为非常突出的几点. 由于是分布式,所有本 ...
- 干货!如何正确使用Git Flow
我们已经从SVN 切换到Git很多年了,现在几乎所有的项目都在使用Github管理, 本篇文章讲一下为什么使用Git, 以及如何在团队中正确使用. Git的优点 Git的优点很多,但是这里只列出我认为 ...
- 正确使用Git Flow
Git 在团队中的最佳实践--如何正确使用Git Flow 我们已经从SVN 切换到Git很多年了,现在几乎所有的项目都在使用Github管理, 本篇文章讲一下为什么使用Git, 以及如何在团队中正确 ...
- Git 在团队中的使用--如何正确使用Git Flow
Git的优点 Git的优点很多,但是这里只列出我认为非常突出的几点. 由于是分布式,所有本地库包含了远程库的所有内容. 优秀的分支模型,打分支以及合并分支,机器方便. 快速,在这个时间就是金钱的时代, ...
- git以及git flow 的使用
转载:http://selfcontroller.iteye.com/blog/996494 在这里主要讲一下我在项目中用到的关于gitflow的用法. 公司的项目中,专门有一台用来存放版本库的服 ...
- git flow 的使用
在这里主要讲一下我在项目中用到的关于gitflow的使用方法. 公司的项目中,专门有一台用来存放版本号库的server,路径是在默认的安装文件夹/opt/git/,那么在使用的时候,假设你是 ...
- SourceTree 实现 git flow 流程
为什么使用 git 和 git flow,这篇文章 深入理解学习Git工作流 的内容相信能够给你一个完整的答案. 我们以使用SVN的工作流来使用git有什么不妥? git 方便的branch在哪里,团 ...
随机推荐
- 38. Same Tree && Symmetric Tree
Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary tre ...
- 60. Insert Interval && Merge Intervals
Insert Interval Given a set of non-overlapping intervals, insert a new interval into the intervals ( ...
- Android IOS WebRTC 音视频开发总结(七四)-- WebRTC开源5周年了,Google怎么看?
本文最早发表在我们的微信公众号上(微信ID:blackerteam),支持原创,详见这里, 2016年6月9日是WebRTC开源5周年的日子,Google WebRTC负责人Harald在社区里面写了 ...
- Android 环境常见问题
1.启动adb时报: adb server is out of data.kill... ADB server didn't ACK *failed to start daemon* er ...
- Reprot中的五个Trigger说明
Report Trigger 1.1 Which report trigger to use As a general rule, any processing that will affect th ...
- web项目启动报错Unknown character set: 'utf8mb4' in mysql
网上一查,有的说是mysql驱动的问题,有的说创建数据库的时候指定utf8编码,换了各种mysql版本,最后换了5.1.6版本的mysql驱动后成功启动!问题解决!OMG
- Hadoop HDFS编程 API入门系列之合并小文件到HDFS(三)
不多说,直接上代码. 代码 package zhouls.bigdata.myWholeHadoop.HDFS.hdfs7; import java.io.IOException;import ja ...
- java assert
一.语法形式: Java2在1.4中新增了一个关键字:assert.在程序开发过程中使用它创建一个断言(assertion),它的 语法形式有如下所示的两种形式: 1.assert condition ...
- WPF TextBlock文本纵向排列
一.将TextBlock文本纵向排列输出有两种模式. 1.文字正常放置,只是纵向排列. 2.文字同样旋转90度,纵向排列. 二.详见下文实例 1.文本正常放置,纵向排列. (1)后台代码 string ...
- 第九十七天请假 PHP TP框架 MVC模式
MVC : M->Model 模型(数据层) V->View 视图(视图层) C->Controller 控制器(逻辑层) M : 操作数据(连接数据 ...