报错,推入bitbucket

Error commit, and push in bitbucket

我想添加一个 IOS 项目到 bitbucket, 所以我这样做了:

cd /path/to/my/project
git init
git remote add origin https://nunito@bitbucket.org/nunito/my_first_app_ios.git

acBook-Pro-de-nunito:MyFirstApp nunito$ git commit -m 'Initial commit'
On branch master

Initial commit

Untracked files:
    MyFirstApp.xcodeproj/
    MyFirstApp/
    MyFirstAppTests copy-Info.plist
    MyFirstAppTests/
    icons/

nothing added to commit but untracked files present

但是while项目还没有添加到git!!!!

提交前需要添加文件!

例如,您添加这样的文件或目录:

git add filename

然后提交消息:

git commit -m "This is commit message to show what does the added file do"

然后运行git push -u origin master推送到origin repo的master分支,并将origin master分支设置为本地master分支的上游。

Pro-git真是一本学习的好书git:https://git-scm.com/documentation