File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -721,6 +721,7 @@ $ git config --global alias.ac 'add -A . && commit'
721
721
| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
722
722
| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
723
723
| ` git remotes ` | ` git remote -v ` | ` git config --global alias.remotes 'remote -v' ` |
724
+ | ` git lg ` | ` git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- ` | ` git config --global alias.lg 'log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --' ` |
724
725
725
726
#### コマンドの自動修正
726
727
多分今は` git comit ` とタイプした場合、以下のような出力を得ることだろう:
Original file line number Diff line number Diff line change @@ -773,6 +773,7 @@ $ git config --global alias.ac 'add -A . && commit'
773
773
| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
774
774
| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
775
775
| ` git remotes ` | ` git remote -v ` | ` git config --global alias.remotes 'remote -v' ` |
776
+ | ` git lg ` | ` git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- ` | ` git config --global alias.lg 'log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --' ` |
776
777
777
778
#### Auto-correct
778
779
Original file line number Diff line number Diff line change @@ -720,6 +720,7 @@ Some useful aliases include:
720
720
| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
721
721
| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
722
722
| ` git remotes ` | ` git remote -v ` | ` git config --global alias.remotes 'remote -v' ` |
723
+ | ` git lg ` | ` git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- ` | ` git config --global alias.lg 'log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --' ` |
723
724
724
725
* Some Aliases are taken from [ @mathiasbynens ] ( https://github.com/mathiasbynens ) dotfiles: https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig *
725
726
Original file line number Diff line number Diff line change @@ -704,6 +704,7 @@ $ git config --global alias.ac 'add -A . && commit'
704
704
| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
705
705
| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
706
706
| ` git remotes ` | ` git remote -v ` | ` git config --global alias.remotes 'remote -v' ` |
707
+ | ` git lg ` | ` git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- ` | ` git config --global alias.lg 'log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --' ` |
707
708
708
709
#### 自动更正
709
710
如果键入 ` git comit ` 你会看到如下输出:
You can’t perform that action at this time.
0 commit comments