我正在构建一个shell脚本。
该脚本获取git日志,例如:
"Updating 2f8b547d..eb94967a Fast-forward...."
but I want to get 2f8b547d..eb94967a
snippet.
我是新手。因此,感谢您的帮助。
更新:
For the more, I want use the snippet as a param. Because I will excute
git log 2f8b547d..eb94967a