美文网首页
在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上新建代码仓库

    Bitbucket //git 仓库的登陆网址和账号 www.bitbucket.org 账号:songjinfe...

  • 使用vs code提交代码

    前提电脑已安装git检验方式:git --version 在githup上创建代码仓库新建方式 按照新建仓库的操作...

  • 解决Git refusing to merge unrelate

    背景:在本地初始化了一个Git代码仓库,关联到Github上新建的仓库,第一次执行git pull origin ...

  • git

    仓库 当前目录新建一个代码库 git init检出仓库 git clone检出标签处的仓库 git clone -...

  • git status 不是一个仓库

    git init //git 初始化即可 因为拉下来的代码,在本地没有仓库,所以必须自己新建一个仓库初始化。(新建...

  • 提交项目到github

    git上新建仓库,获取仓库地址 cmd 进入新建的项目目录 在命令行输入:git clone -o github ...

  • 将本地git仓库关联至远程git仓库 2019-11-20(未经

    如何将本地git仓库关联至远程git仓库 以本地git仓库关联GitHub仓库为例: 在github上新建仓库(注...

  • 错误问题记录

    1、将Git 本地仓库和 GitHub 上新建的 Repository 关联 并push 本地代码到远程仓库 出现...

  • gitlab上传项目代码

    1.在gitlab上新建仓库 2.在本地新建项目tongCheng,将仓库克隆在本地,git clone + 仓库...

  • Git基本用法

    title: Git语法 新建本地仓库 在当前目录新建一个Git代码本地仓库git init 添加指定文件到暂存区...

网友评论

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

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