あたらしものずきっ!

試してみたものとか、遊んでみたものを色々記してみます。

PunchBubbleをローカルのgitで管理することにした

codereposのgitをこの際だから本格運用と思ったら、何やら障害起こってる様子

いきなり操作してヘマしてやり直すのもあれだから、とりあえずローカルで練習ついでに組み立てることにした。

macportsからgitを入れる。

$sudo port
password
Entering interactive mode... ("help" for help, "quit" to quit)
[Documents/iPhone] > install git-core +gitweb +svn 
..
--->  Activating git-core @1.6.1_1+doc+gitweb+svn
Error: Target org.macports.activate returned: Image error: Another version of this port (git-core @1.6.1_1+doc) is already active.
Error: Status 1 encountered during processing.

Activeにならなかった。入れていた事をすっかり忘れていたgit-core @1.6.1_1+docを消して、再度Activate。

[Documents/iPhone] > deactive git-core @1.6.1_1+doc 
[Documents/iPhone] > uninstall git-core @1.6.1_1+doc 
[Documents/iPhone] > activate git-core @1.6.1_1+doc+gitweb+svn
[Documents/iPhone] > exit

リポジトリ初期化。

$cd PunchBubble
$git init

PunchBubbleフォルダ内のデータをgitにつっこんでcommit。

$git add .
$git commit -m "first commit"
[master (root-commit)]: created df27e9e: "first commit"
 297 files changed, 5375 insertions(+), 0 deletions(-)
..

iTunes Connectに申請した状態をtagにする。

$git tag Version-1.0-Publich

あとは各種修正の際にbranchを作成して、修正をcommit。最終的にmasterにmargeする。

$git branch FirstLook-1.1     #branch作成
$git checkout FirstLook-1.1  #branchをFirstLook-1.1に切り替える
.. #編集etc
$git add .
$git commit -m "etc"          #FirstLook-1.1のcommit
$git checkout master           #branchをmasterに切り替える
$git merge FirstLook-1.1      #FirstLook-1.1の修正をmasterに反映する

とりあえず次はgithubにでも。