当我使用git branch
命令列出所有分支时,我看到的输出git branch | less
。
该命令git branch
应该显示分支列表,就像ls
文件一样。
这是我得到的输出:
如何获得默认行为git branch
?是什么原因导致页面输出?
我正在使用ZSH oh_my_zsh
(那里没有Git),我的.gitconfig
样子是这样的:
[user]
email = myemail@mail.com
name = Dennis Haegler
[push]
default = simple
[merge]
tool = vimdiff
[core]
editor = nvim
excludesfile = /Users/dennish/.gitignore_global
[color]
ui = true
[alias]
br = branch
ci = commit -v
cam = commit -am
co = checkout
df = diff
st = status
sa = stash
mt = mergetool
cp = cherry-pick
pl = pull --rebase
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh
\"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true