3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

amazon linuxにgit-flowをインストールする

Last updated at Posted at 2015-02-28

CentOSと一緒です。
http://qiita.com/drapon/items/a510613ecb5b8dfaea45

root権限になる

$ sudo su -

インストールディレクトリまで移動

$ cd /usr/local/src

インストール

$ wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

実行されればOKです。

### gitflow no-make installer ###
Installing git-flow to /usr/local/bin
Cloning repo from GitHub to gitflow
Cloning into 'gitflow'...
remote: Counting objects: 1407, done.
remote: Total 1407 (delta 0), reused 0 (delta 0), pack-reused 1407
Receiving objects: 100% (1407/1407), 623.29 KiB | 327.00 KiB/s, done.
Resolving deltas: 100% (689/689), done.
Checking connectivity... done.
Updating submodules
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
Cloning into 'shFlags'...
remote: Counting objects: 454, done.
remote: Total 454 (delta 0), reused 0 (delta 0), pack-reused 454
Receiving objects: 100% (454/454), 130.91 KiB | 151.00 KiB/s, done.
Resolving deltas: 100% (337/337), done.
Checking connectivity... done.
Submodule path 'shFlags': checked out '2fb06af13de884e9680f14a00c82e52a67c867f1'
‘gitflow/git-flow’ -> ‘/usr/local/bin/git-flow’
‘gitflow/git-flow-init’ -> ‘/usr/local/bin/git-flow-init’
‘gitflow/git-flow-feature’ -> ‘/usr/local/bin/git-flow-feature’
‘gitflow/git-flow-hotfix’ -> ‘/usr/local/bin/git-flow-hotfix’
‘gitflow/git-flow-release’ -> ‘/usr/local/bin/git-flow-release’
‘gitflow/git-flow-support’ -> ‘/usr/local/bin/git-flow-support’
‘gitflow/git-flow-version’ -> ‘/usr/local/bin/git-flow-version’
‘gitflow/gitflow-common’ -> ‘/usr/local/bin/gitflow-common’
‘gitflow/gitflow-shFlags’ -> ‘/usr/local/bin/gitflow-shFlags’

実行して確認

$ git flow
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.

既存リポジトリにgit-flowを導入する

1.事前にdevelopブランチを作成

$ git checkout master
$ git branch develop

2.導入

git flow initを実行して導入します。
いろいろ聞かれますが、通常はそのままEnterを押していけばOKです。

$ git flow init
Initialized empty Git repository in /Users/inouetakuya/Dropbox/Projects/git-flow/.git/
No branches exist yet. Base branches must be created now.
Branch name for production releases: [master]
Branch name for "next release" development: [develop]

How to name your supporting branch prefixes?
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []
3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?