LoginSignup
3
4

More than 5 years have passed since last update.

FuelPHP + Git初期設定

Last updated at Posted at 2016-05-08

FuelPHPプロジェクトを作成

oil create ProjectName
cd ProjectName

FuelPHPモジュール内にある、Git管理下のコンポーネントを全て削除

rm -rf .git .gitmodules *.md docs fuel/core fuel/packages

新たにGit管理開始

git init

コンポーネントをサブモジュールとして管理

git submodule add git://github.com/fuel/core.git fuel/core
git submodule add git://github.com/fuel/oil.git fuel/packages/oil
git submodule add git://github.com/fuel/auth.git fuel/packages/auth
git submodule add git://github.com/fuel/parser.git fuel/packages/parser
git submodule add git://github.com/fuel/orm.git fuel/packages/orm
git submodule add git://github.com/fuel/email.git fuel/packages/email

サブモジュールのチェックアウト

git submodule foreach 'git checkout 1.7/master'
git submodule foreach 'git checkout 1.8/master'
git submodule foreach 'git checkout 1.9/master'

ローカルにコミット

git add .
git commit -m "initial commit"

プッシュ

git remote add origin [リポジトリURL]
git push -u origin master
3
4
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
4