当我使用git branch
命令列出所有分支时,我看到git branch | less
的输出。
命令git branch
应该显示分支列表,就像ls
对文件所做的那样。
这是我得到的输出:
如何获取git branch
的默认行为?是什么原因导致分页输出?
我的.gitconfig
看起来像这样:
[user]
email = myemail@mail.com
name = Dennis H.
[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