Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1821832
  • 博文数量: 317
  • 博客积分: 1557
  • 博客等级: 上尉
  • 技术积分: 1208
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-26 23:38
个人简介

如果想出发,就不要等到明天!

文章分类

全部博文(317)

文章存档

2016年(1)

2015年(41)

2014年(152)

2013年(114)

2012年(4)

2011年(1)

2009年(4)

分类: 项目管理

2012-08-13 22:31:11

1,init repository
  1. mkdir demo
  2. cd demo
  3. git init
2,configure repository information

  1. git config user.name "Garfield Trump"
  2. git config user.email
3,query repository config information

  1. git config -e
  2. git config -e --global
  3. git config -e --system
  4. cat .git/config
4,add file into repository

  1. echo "Hello." >> welcome.txt
  2. git add welcome.txt
  3. git status
  4. git status -s
  5. git commit -m "initialized"
  6. git status
  7. git status -s
5,query repository information of path

  1. mkdir -p a/b/c
  2. cd a/b/c
  3. git rev-parse --git-dir
  4. git rev-parse --show-toplevel
  5. git rev-parse --show-prefix
  6. git rev-parse --show-cdup
6,show repository log

  1. git log
  2. git log --pretty=fuller
7,clone repository

  1. cd /path/to/my/workspace
  2. git clone demo demo1





 
 
 


 
阅读(2097) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~