xcodeのプロジェクトをgithubのremoteにコミットする方法忘れてたのでメモ
xcode関係なく、何かしらのプロジェクトをコミットしたいときにも使えるよ
まずはローカルにコミット
cd プロジェクトのあるフォルダ
git init
git add .
git commit -m "コミットメッセージ"
こっからリモートにコミット
git remote add origin https://github.com/shiratsu/moneyplan.git
git push -u origin master
エラー
error: failed to push some refs to 'https://github.com/shiratsu/moneyplan.git'
ググって以下を見つけた
http://www.softel.co.jp/blogs/tech/archives/3569
git fetch
git merge origin/master
git push -u origin master
成功って感じ
gitにリモートブランチ作成
以下を見て行う
http://ameblo.jp/g-pinchan-new/entry-11352681517.html