8000 Readme.md · Dream-git/my-git@c519267 · GitHub
[go: up one dir, main page]

Skip to content

Commit c519267

Browse files
committed
Readme.md
1 parent 5841879 commit c519267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

useful-git-command.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
说明
22
=======
3-
Git 命令中有些是不常用、但很实用的,这些命令都是在日常使用过程中遇到过整理下来的,留作备忘。
3+
Git 常用、不常用、实用的命令,这些命令都是在日常使用过程中遇到过整理下来的,留作备忘,如果对这些命令还不明白什么意思,请参考学习:[Git 新手入门](readme.md#新手入门)
44

55
# Repository
66

@@ -35,6 +35,7 @@ Git 命令中有些是不常用、但很实用的,这些命令都是在日常
3535
+ 查看最近2周内:`git log --since=2week` 或者指定2周明确日志,比如:`git log --since=2015-08-12`
3636
+ 只查看某个用户的提交:`git log --committer=user.name` / `git log --author=user.name`
3737
+ 只查看提交msg中包含某个信息的历史,比如包含'测试'两个字的:`git log --grep '测试'`
38+
+ 试试这个 : `git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit` 感觉好用就加成 alias ,方便日后用,方法:`git config --global alias.aliasname 'alias-content'`
3839
+ 更多用法:[Viewing the History -- 《Pro Git2》](http://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History)
3940

4041

0 commit comments

Comments
 (0)
0