【问题标题】:git alias command is not working can any one describe me syntax of git alias command [duplicate]git alias 命令不起作用,任何人都可以描述一下 git alias 命令的语法 [重复]
【发布时间】:2016-01-14 20:10:17
【问题描述】:

git 别名命令不起作用 我试过了 git alias'cm' commit -m 但这对我不起作用。

【问题讨论】:

标签: git alias


【解决方案1】:
#set the alias
git config --global alias.cm "commit -m"

使用它:

git cm "message"

【讨论】:

  • 这行得通。谢谢
  • 酷,如果它有效,你应该接受答案
猜你喜欢
  • 2011-11-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-26
  • 1970-01-01
  • 1970-01-01
  • 2014-08-06
  • 2021-09-25
相关资源
最近更新 更多