git 始终在列中显示分支
git always display branches in columns
我有一堆分支,我正在尝试设置 git 因此默认显示在列中。也就是说,我希望默认值为 git branch --column
.
我尝试在我的 .gitconfig
文件中定义一个别名:bc = branch --column
但是当我在终端中键入 git bc
时,它反而创建了一个名为 --column
的分支! (确实很有趣 trying to get rid of that branch...)
我也试过 git branch --column=always
但那只是针对那个特定实例以列格式显示内容,而不是将其设置为默认显示。
我尝试阅读文档并在线搜索,但未能找到答案。
git help branch
让我"See configuration variable column.branch for option syntax."
- Google 搜索显示 this page on git-commands from tortoisegit.org 但
column.branch
部分说要查看 column.ui
部分,而 column.ui
仅列出可用设置用于按列输出。
你可以试试(来自git config
man page):
git config --global column.ui always
Specify whether supported commands should output in columns
注意:git config --global alias.bc 'branch --column'
应该也可以。
我有一堆分支,我正在尝试设置 git 因此默认显示在列中。也就是说,我希望默认值为 git branch --column
.
我尝试在我的 .gitconfig
文件中定义一个别名:bc = branch --column
但是当我在终端中键入 git bc
时,它反而创建了一个名为 --column
的分支! (确实很有趣 trying to get rid of that branch...)
我也试过 git branch --column=always
但那只是针对那个特定实例以列格式显示内容,而不是将其设置为默认显示。
我尝试阅读文档并在线搜索,但未能找到答案。
git help branch
让我"See configuration variable column.branch for option syntax."- Google 搜索显示 this page on git-commands from tortoisegit.org 但
column.branch
部分说要查看column.ui
部分,而column.ui
仅列出可用设置用于按列输出。
你可以试试(来自git config
man page):
git config --global column.ui always
Specify whether supported commands should output in columns
注意:git config --global alias.bc 'branch --column'
应该也可以。