Technofara

Golangエンジニア!仕事で必要になって勉強した事とか、新しい事とか色々まとめたりを緩くやります。技術系と思考系だけにしておきます、

# boxenをアップデート

boxenを本家から、cloneしてつかってると masterがプライベートなリポジトリに向いてしまってる。 なので、本家のour-boxenをremoteに設定してから、色々やります

our-boxenをアップデートする

remoteに設定

$ git remote add upstream git://github.com/boxen/our-boxen.git

設定できてるか確認

$ git remote -v | grep upstream
upstream    git://github.com/boxen/our-boxen.git (fetch)
upstream    git://github.com/boxen/our-boxen.git (push)

そしたらupstreamからpullします

$ git pull upstream master
From git://github.com/boxen/our-boxen
 * branch            master     -> FETCH_HEAD
Auto-merging manifests/site.pp
CONFLICT (content): Merge conflict in manifests/site.pp
Auto-merging Puppetfile.lock
CONFLICT (content): Merge conflict in Puppetfile.lock
Auto-merging Puppetfile
Automatic merge failed; fix conflicts and then commit the result.

あわわわわ(コンフリクトでちゃった) コンフリクトが出たら、手動でなおします。 終わったら

script/boxen

完了!

参考 http://qiita.com/yuku_t/items/9312fd82a0fd291b683f