//git 倉庫的登陸網址和賬號
www.bitbucket.org
賬號:songjinfeng 密碼:s1991***2
郵箱:songjinfeng2@163.com
命令行樣例:
cd /Users/jeremy/Documents/song/hotelEnglish/hotelEnglish??? //進入本地目錄
git init
Initialized empty Git repository in /Users/jeremy/Documents/song/hotelEnglish/hotelEnglish/.git/
git remote add origin https://songjinfeng@bitbucket.org/songjinfeng/hotelenglish.git
git status
git commit -m "創建app"
git push
成功實例
/*****************************
Last login: Wed Mar 16 11:47:27 on ttys000JeremydeMacBook-Pro:~ jeremy$ cd /Users/jeremy/Documents/song/hotelEnglish/hotelEnglish JeremydeMacBook-Pro:hotelEnglish jeremy$ lsJeremydeMacBook-Pro:hotelEnglish jeremy$ git initInitialized empty Git repository in /Users/jeremy/Documents/song/hotelEnglish/hotelEnglish/.git/JeremydeMacBook-Pro:hotelEnglish jeremy$ git remote add origin https://songjinfeng@bitbucket.org/songjinfeng/hotelenglish.gitJeremydeMacBook-Pro:hotelEnglish jeremy$ git statusOn branch masterInitial commitUntracked files:? (use "git add..." to include in what will be committed)hotelEnglish.xcodeproj/hotelEnglish/hotelEnglishTests/hotelEnglishUITests/nothing added to commit but untracked files present (use "git add" to track)JeremydeMacBook-Pro:hotelEnglish jeremy$ git add .JeremydeMacBook-Pro:hotelEnglish jeremy$ git statusOn branch masterInitial commitChanges to be committed:? (use "git rm --cached..." to unstage)
new file:? hotelEnglish.xcodeproj/project.pbxproj
new file:? hotelEnglish.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file:? hotelEnglish.xcodeproj/project.xcworkspace/xcuserdata/jeremy.xcuserdatad/UserInterfaceState.xcuserstate
new file:? hotelEnglish.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/hotelEnglish.xcscheme
new file:? hotelEnglish.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/xcschememanagement.plist
new file:? hotelEnglish/AppDelegate.h
new file:? hotelEnglish/AppDelegate.m
new file:? hotelEnglish/Assets.xcassets/AppIcon.appiconset/Contents.json
new file:? hotelEnglish/Base.lproj/LaunchScreen.storyboard
new file:? hotelEnglish/Base.lproj/Main.storyboard
new file:? hotelEnglish/Info.plist
new file:? hotelEnglish/ViewController.h
new file:? hotelEnglish/ViewController.m
new file:? hotelEnglish/main.m
new file:? hotelEnglishTests/Info.plist
new file:? hotelEnglishTests/hotelEnglishTests.m
new file:? hotelEnglishUITests/Info.plist
new file:? hotelEnglishUITests/hotelEnglishUITests.m
JeremydeMacBook-Pro:hotelEnglish jeremy$ git commit -m "創建app"
[master (root-commit) 228cf03] 創建app
18 files changed, 1046 insertions(+)
create mode 100644 hotelEnglish.xcodeproj/project.pbxproj
create mode 100644 hotelEnglish.xcodeproj/project.xcworkspace/contents.xcworkspacedata
create mode 100644 hotelEnglish.xcodeproj/project.xcworkspace/xcuserdata/jeremy.xcuserdatad/UserInterfaceState.xcuserstate
create mode 100644 hotelEnglish.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/hotelEnglish.xcscheme
create mode 100644 hotelEnglish.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/xcschememanagement.plist
create mode 100644 hotelEnglish/AppDelegate.h
create mode 100644 hotelEnglish/AppDelegate.m
create mode 100644 hotelEnglish/Assets.xcassets/AppIcon.appiconset/Contents.json
create mode 100644 hotelEnglish/Base.lproj/LaunchScreen.storyboard
create mode 100644 hotelEnglish/Base.lproj/Main.storyboard
create mode 100644 hotelEnglish/Info.plist
create mode 100644 hotelEnglish/ViewController.h
create mode 100644 hotelEnglish/ViewController.m
create mode 100644 hotelEnglish/main.m
create mode 100644 hotelEnglishTests/Info.plist
create mode 100644 hotelEnglishTests/hotelEnglishTests.m
create mode 100644 hotelEnglishUITests/Info.plist
create mode 100644 hotelEnglishUITests/hotelEnglishUITests.m
JeremydeMacBook-Pro:hotelEnglish jeremy$ git push
*******************************************************************************/