File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ $ git config --global alias.ac 'add -A . && commit'
721721| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
722722| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
723723| ` 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+ | ` 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 --" ` |
725725
726726#### コマンドの自動修正
727727多分今は` git comit ` とタイプした場合、以下のような出力を得ることだろう:
Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ $ git config --global alias.ac 'add -A . && commit'
773773| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
774774| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
775775| ` 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+ | ` 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 --" ` |
777777
778778#### Auto-correct
779779
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ Some useful aliases include:
720720| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
721721| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
722722| ` 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+ | ` 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 --" ` |
724724
725725* Some Aliases are taken from [ @mathiasbynens ] ( https://github.com/mathiasbynens ) dotfiles: https://github.com/mathiasbynens/dotfiles/blob/master/.gitconfig *
726726
Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ $ git config --global alias.ac 'add -A . && commit'
704704| ` git tags ` | ` git tag -l ` | ` git config --global alias.tags 'tag -l' ` |
705705| ` git branches ` | ` git branch -a ` | ` git config --global alias.branches 'branch -a' ` |
706706| ` 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+ | ` 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 --" ` |
708708
709709#### 自动更正
710710如果键入 ` git comit ` 你会看到如下输出:
You can’t perform that action at this time.
0 commit comments