Xcode プロジェクトの途中からBitbucketに追加

投稿者:

・BitbucketでRepositoryを作成
・作成後「 I have an existing project」を選択してコマンドの方法を参照
# cd /path/to/my/repo
# git init
# git add –all
# git remote add origin https://xxxxx@bitbucket.org/xxxxx/xxxxx.git
# git commit -m “first commit”
# git push -u origin –all
うまくいけばこれでOK
「Perhaps you should specify a branch such as ‘master’.」で怒られる
# git push –set-upstream origin master
「error: src refspec master does not match any.」で怒られる
# git commit -m “first commit” でコミット成功

Thank you for reading this post, don't forget to subscribe!