git 常用的东西!
2016-03-18 17:22
267 查看
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$
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$
相关文章推荐
- DMX512 for Arduino 例子详解
- C语言小结3
- RxJava使用场景搜集
- C#基本语法学习(八)
- CentOS下添加新硬盘
- 反编译问题
- virt-manager启动本地连接报错:internal error: could not get interface XML description: File operation failed
- 文件管理系统课堂笔记
- 将一个数组划分为和差值最小的子数组
- Mysql中文乱码解决方案
- 2015蓝桥杯 生命之树
- python标准库学习2-OS
- 将一个数组划分为和差值最小的子数组
- JavaScript学习笔记:数组求和方法(待续中...)
- ubuntu 15 安装cuda,开启GPU加速
- Button selector属性
- 【技巧】通过适配器模式完成栈的数据结构
- Oracle Linux 6.5 安装Oracle 11G 配置安装
- 透视投影原理(只有网址)
- jni GetStringUTFChars