我正在嘗試向 git 添加別名以重定向到專案檔案夾,打開 VS Code 并運行本地服務器
我的別名:
[alias]
creative = cd e:/work/vero/creative-app/front-end && code . && npm rune serve
問題是運行git creative回應是:
expansion of alias 'creative' failed; 'cd' is not a git command
uj5u.com熱心網友回復:
只需!在你的別名前面加上 a ,它就會被 bash 而不是 git 直接解釋。
從檔案:
As you can tell, Git simply replaces the new command with whatever you
alias it for. However, maybe you want to run an external command,
rather than a Git subcommand. In that case, you start the command with
a ! character.
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/391824.html
