【发布时间】:2023-03-20 05:20:02
【问题描述】:
我正在使用 Cygwin 和默认附带的 git (v1.7.9) (/usr/bin/git)。我还安装了 msysgit (v1.7.11.msysgit.0)。在我的 .bashrc 中,我这样做了
export GIT_CONFIG=path_to_.gitconfig
当我运行git config --list 时,我得到了.gitconfig 的内容(相关摘录如下):
...
alias.co=checkout
alias.br=branch
alias.ci=commit
alias.st=status
alias.logp=log --pretty=format:"%h - %an, %ar : %s"
alias.logl=log --pretty=oneline
alias.graph=log --pretty=format:"%h - %an : %s" --graph
...
但是,如果我运行 git ci -m "this is a test" 我会得到
git: 'ci' is not a git command. See 'git --help'.
Did you mean one of these?
am
citool
commit
config
diff
fsck
gc
init
mv
rm
cygwin自带的git是不是要另外设置?
【问题讨论】: