Chinaunix首页 | 论坛 | 博客
  • 博客访问: 24353
  • 博文数量: 9
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-06 22:40
文章分类

全部博文(9)

文章存档

2014年(9)

我的朋友

分类: 项目管理

2014-03-22 22:02:49

原文地址:使用git加管道操作 作者:T-Bagwell

[root@btg ext4]# git status

# On branch master
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#        modified:   fs/ext4/acl.h
#
# Untracked files:
[root@btg ext4]# git commit -am "fuck"
[master 4786fcc] fuck
 1 files changed, 0 insertions(+), 3 deletions(-)
[root@btg ext4]# git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
[root@btg ext4]# git format-patch -s -1
0001-fuck.patch
[root@btg ext4]# git log|grep commit|head -n2|tail -n1|awk -F " " '{ print $2 }'|xargs git reset --hard 
HEAD is now at 275d3ba ext4: remove loop around bio_alloc()
[root@btg ext4]# git status
# On branch master
阅读(870) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~