美文网首页
在git上新建代码仓库

在git上新建代码仓库

作者: 宋进锋 | 来源:发表于2016-03-18 11:26 被阅读91次

    Bitbucket

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

    *******************************************************************************/

    相关文章

      网友评论

          本文标题:在git上新建代码仓库

          本文链接:https://www.haomeiwen.com/subject/xmoclttx.html