git 常用的东西!

来源:互联网 发布:支付宝软件 编辑:程序博客网 时间:2024/06/07 09:15

Last login: Fri Mar 18 04:35:35 on ttys000

bogon:~ mac$ git config --global user.name "梦想之树"

bogon:~ mac$ git config --global user.email "960462916@qq.com"

bogon:~ mac$ cd /Users/mac/Documents/zhanxin/code

bogon:code mac$ git clone https://git.oschina.net/dreamsuccess/zhanxin.git

Cloning into 'zhanxin'...

remote: Counting objects: 3, done.

remote: Total 3 (delta 0), reused 0 (delta 0)

Unpacking objects: 100% (3/3), done.

Checking connectivity... done.

bogon:code mac$ git commit -am "删除文件"

fatal: Not a git repository (or any of the parent directories): .git

bogon:code mac$ git commit -am "ddd"

fatal: Not a git repository (or any of the parent directories): .git

bogon:code mac$ ls

zhanxin

bogon:code mac$ cd zhanxin

bogon:zhanxin mac$ git commit -am "删除文件"

[master a21c429] 删除文件

 1 file changed, 1 deletion(-)

 delete mode 100644 README.md

bogon:zhanxin mac$ git commit -am "添加文件"

On branch master

Your branch is ahead of 'origin/master' by 1 commit.

  (use "git push" topublish your local commits)

Untracked files:

    .DS_Store

    zhanxin.xcodeproj/

    zhanxin/

    zhanxinTests/

    zhanxinUITests/

 

nothing added to commit but untracked files present

bogon:zhanxin mac$ git push origin master

Counting objects: 2, done.

Writing objects: 100% (2/2), 217 bytes | 0 bytes/s, done.

Total 2 (delta 0), reused 0 (delta 0)

To https://git.oschina.net/dreamsuccess/zhanxin.git

   f1f1883..a21c429  master -> master

bogon:zhanxin mac$ git pull

Already up-to-date.

bogon:zhanxin mac$ git add .

bogon:zhanxin mac$ git commit -am "新建工程"

[master a7adea8] 新建工程

 19 files changed, 1085insertions(+)

 create mode 100644 .DS_Store

 create mode 100644zhanxin.xcodeproj/project.pbxproj

 create mode 100644zhanxin.xcodeproj/project.xcworkspace/contents.xcworkspacedata

 create mode 100644zhanxin.xcodeproj/project.xcworkspace/xcuserdata/mac.xcuserdatad/UserInterfaceState.xcuserstate

 create mode 100644zhanxin.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/xcschememanagement.plist

 create mode 100644zhanxin.xcodeproj/xcuserdata/mac.xcuserdatad/xcschemes/zhanxin.xcscheme

 create mode 100644zhanxin/AppDelegate.h

 create mode 100644zhanxin/AppDelegate.m

 create mode 100644zhanxin/Assets.xcassets/AppIcon.appiconset/Contents.json

 create mode 100644zhanxin/Base.lproj/LaunchScreen.storyboard

 create mode 100644zhanxin/Base.lproj/Main.storyboard

 create mode 100644zhanxin/Info.plist

 create mode 100644zhanxin/ViewController.h

 create mode 100644zhanxin/ViewController.m

 create mode 100644 zhanxin/main.m

 create mode 100644zhanxinTests/Info.plist

 create mode 100644zhanxinTests/zhanxinTests.m

 create mode 100644zhanxinUITests/Info.plist

 create mode 100644zhanxinUITests/zhanxinUITests.m

bogon:zhanxin mac$ git push origin master

Counting objects: 33, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (28/28), done.

Writing objects: 100% (33/33), 16.86 KiB | 0 bytes/s, done.

Total 33 (delta 1), reused 0 (delta 0)

To https://git.oschina.net/dreamsuccess/zhanxin.git

   a21c429..a7adea8  master -> master

bogon:zhanxin mac$ 

0 0
原创粉丝点击