git - Git 别名文档
问题描述
我已经知道如何制作别名,简单的,复杂的,一切都很好,除了......
我现在想记录我的别名,所以当我这样做时
git my-super-alias --help
而不是仅仅得到:
'my-super-alias' is aliased to '[super specific set of instructions]'
我会得到:
'my-super-alias' is aliased to '[super specific set of instructions]' this serves [super specific purpose] which is useful for [super specific, yet not very obvious at first glance, reason]
有什么办法可以在本机 git config 中使用它?
解决方案
您可以使超级特定指令集的开始成为对他们的帮助。
$ git config alias.testhelp '!# My super specific command does AMAZING THINGS!
date'
$ git testhelp
Fri Jan 29 11:29:52 AM PST 2021
$ git help testhelp
'testhelp ' is aliased to '!# My super specific command does AMAZING THINGS!
date'
$
推荐阅读
- visual-studio - 卡在 Visual Studio 中运行的 Flutter 项目
- r - 使用 R 中的正则表达式在文本中提取年份,在带宽内
- excel - 发送短信的 VBA 问题
- sql - 如何从最终表中的嵌套 SELECT 查询中返回列?
- codenameone - 使用 Infinite Container pull to refresh 实现安全区域
- repository - openSUSE zypper 错误 - 在指定 URL 未找到有效元数据,无法确定存储库类型
- google-apps-script - 将单元格数据发送到 Google 表格中的自定义函数
- css - Flexbox:当img太大且高度为100%时,flex 1变得太大
- sql-server - 如何在 SQL Server Management Studio 中生成排序脚本?
- docker - Kubernetes 上 Jenkins 的持久卷