Chinaunix首页 | 论坛 | 博客
  • 博客访问: 96263
  • 博文数量: 28
  • 博客积分: 1435
  • 博客等级: 上尉
  • 技术积分: 265
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-26 11:40
文章分类

全部博文(28)

文章存档

2017年(1)

2012年(1)

2011年(6)

2010年(20)

我的朋友

分类: LINUX

2011-03-21 15:17:45

git

1.config the global information ,name and email
2.download the git-tree from remote
3.modify the files
----4.git add (增加文件到git-tree中)

指定文件名或增加.gitignore

6.git commit -m "description of the modify(patch)"
7.git format-patch -n -s -1 -o patch-dir //generate the patch

8.git am < patch-dir //merge the patch from patch-dir

9.恢复到上一次(撤销本次,代码不修改)
  git reset --soft 哈西值
  git reset

gitemail
git send-email --no-signed-off-by-cc --from lizhijie86su@gmail.com --to skyeye-patch@lists.sourceforge.net --compose --thread --no-chain-reply-to --smtp-server smtp.gmail.com --subject "bus_read bug" patch_dir

修改branch:
git branch -a 查看远程所有的branch
git checkout --track -b ppc-dyncom remotes/origin/dyncom_arm_ppc
阅读(423) | 评论(0) | 转发(0) |
0

上一篇:wireshark过滤器规则

下一篇:统计代码行数

给主人留下些什么吧!~~