LoginSignup
13
13

More than 5 years have passed since last update.

github+xcode連携めも

Last updated at Posted at 2013-09-16

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

13
13
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
13
13