LoginSignup
1
3

More than 5 years have passed since last update.

git-flow initするまで

Posted at

初めに

git管理されているリポジトリに、
git-flowを導入した場合のメモ

前提

1.すでに、git initしちゃってる。
2.masterブランチしかないような状態でした。

環境

cat /etc/redhat-release
->Fedora release 24 (Twenty Four)

git-flowインストール

su
cd /usr/local/src
wget -q -O - --no-check-certificate https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash

パスが通ってなかったから、通した。(ここでは全ユーザーに設定する。)

vi /etc/profile
#最終行に下記を追加
export PATH=$PATH:/usr/local/src

そして、再起動。

インストール確認

git flow

なんかそれっぽいのが出てきたらOK

git-flow導入(developブランチを作成し、init)

git initしちゃってるディレクトリに移動して。。

git branch develop
git flow init

※デフォルトでやるので、聞かれてもひたすら連打。

おわり!

参考

git-flowインストール
http://qiita.com/drapon/items/a510613ecb5b8dfaea45
http://rfs.jp/server/git/03git/git-flow-install.html#Linuxgit-flow

パスを通す
http://d.hatena.ne.jp/Akineko/20090825/1251187210

既存リポジトリにgit-flowを導入
http://qiita.com/azusanakano/items/c5f021497d8f69c00e51
http://blog.inouetakuya.info/entry/20120605/1338900346

1
3
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
1
3