我在执行exec
时尝试使用别名git rebase -i
pick hash commit_message
x alias_name
错误:
Executing: alias_name
error: cannot run alias_name: No such file or directory
warning: execution failed: alias_name
You can fix the problem, and then run
git rebase --continue
alias alias_name='calls a phyton script to run arc command'
如果我确实在终端上运行别名,它将按预期工作。
pick hash commit_message
x source some_file; shopt -s expand_aliases; alias_name