使用 git clone --shallow-since 命令时使用相对日期

9

我可以在 git clone 命令的 --shallow-since=<date> 中使用相对日期吗?(例如类似于one-year-ago)?

命令替换(例如在 bashPowerShell 中使用的$(one-year-ago-command) 或在 bash 中使用的`one-year-ago-command`)并不是真正的选择,因为我正在使用 cmd,而 for /f 则很麻烦。

1个回答

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接