首页 技术 正文
技术 2022年11月15日
0 收藏 318 点赞 4,317 浏览 1909 个字

确保安装了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只是添加了流程方面的几个脚本

  

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,082
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,556
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,406
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,179
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,815
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,898