在mac上安装git-flow过程

git很强大,但是很多人还是不是很习惯使用git的流程,于是 git-flow 就出现了,这里写下如何在mac上装下git-flow,其实很简单,直接用brew安装就好勒,如下;

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ice@mac:/source/labs/gits/init > brew install git-flow
==> Cloning https://github.com/nvie/gitflow.git
Cloning into '/Users/ice/Library/Caches/Homebrew/git-flow--git'...
remote: Counting objects: 154, done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 154 (delta 77), reused 75 (delta 20)
Receiving objects: 100% (154/154), 185.38 KiB | 82 KiB/s, done.
Resolving deltas: 100% (77/77), done.
warning: Remote branch 0.4.1 not found in upstream origin, using HEAD instead
==> Checking out tag 0.4.1
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 454 (delta 389), reused 453 (delta 388)
Receiving objects: 100% (454/454), 101.23 KiB | 62 KiB/s, done.
Resolving deltas: 100% (389/389), done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
==> make prefix=/usr/local/Cellar/git-flow/0.4.1 install
==> Downloading https://github.com/bobthecow/git-flow-completion/tarball/0.4.1.0
######################################################################## 100.0%
Warning: Non-executables were installed to "bin".
Installing non-executables to "bin" is bad practice.
The offending files are:
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-feature
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-hotfix
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-init
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-release
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-support
/usr/local/Cellar/git-flow/0.4.1/bin/git-flow-version
/usr/local/Cellar/git-flow/0.4.1/bin/gitflow-common
/usr/local/Cellar/git-flow/0.4.1/bin/gitflow-shFlags
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Caveats
zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/git-flow/0.4.1: 14 files, 140K, built in 25 seconds

看看是不是好了,看下

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ice@mac:/source/labs/gits/init > git-flow help
usage: git flow <subcommand>

Available subcommands are:
   init      Initialize a new git repo with support for the branching model.
   feature   Manage your feature branches.
   release   Manage your release branches.
   hotfix    Manage your hotfix branches.
   support   Manage your support branches.
   version   Shows version information.

Try 'git flow <subcommand> help' for details.

再看下具体的怎么用,如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ice@mac:/source/labs/gits/init > git flow feature help
usage: git flow feature [list] [-v]
       git flow feature start [-F] <name> [<base>]
       git flow feature finish [-rFk] <name|nameprefix>
       git flow feature publish <name>
       git flow feature track <name>
       git flow feature diff [<name|nameprefix>]
       git flow feature rebase [-i] [<name|nameprefix>]
       git flow feature checkout [<name|nameprefix>]
       git flow feature pull <remote> [<name>]

猜你喜欢

转载自soledede.iteye.com/blog/1949532
今日推荐