随机Git提交 Hujiuxiang 2019-08-04 ・1 分钟阅读 #shell脚本 #提交 $ git commit -m "$(w3m whatthecommit.com | head -n 1)"说明-m允许您在不进入编辑器的情况下提供提交消息w3m是基于终端的浏览器。 我们基本上用它来去除所有的html标签head -n 1将只获取第一行限制要求你安装w3m 复制到剪贴板 分享到领英 分享文章 举报滥用