在bash_配置文件中添加编号为的git别名无效

在bash_配置文件中添加编号为的git别名无效,bash,git,terminal,Bash,Git,Terminal,我在bash\u profile中添加了alias gcl1='git clone--depth 1',但是当我运行source~/.bash\u profile时,我得到了错误。bash\u profile:43:git clone--depth 1找不到 但是alias gcd='git checkout dev'起作用了,我想这是因为这个数字 如何修复此错误?删除别名“gcl1”后的空格 不是: alias gcl1='git clone --depth 1' alias gcl1 ='

我在
bash\u profile
中添加了
alias gcl1='git clone--depth 1'
,但是当我运行
source~/.bash\u profile
时,我得到了错误
。bash\u profile:43:git clone--depth 1找不到

但是
alias gcd='git checkout dev'
起作用了,我想这是因为这个数字


如何修复此错误?

删除别名“gcl1”后的空格

不是:

alias gcl1='git clone --depth 1'
alias gcl1 ='git clone --depth 1'