默认情况下,git不允许空提交。
可以使用allow-empty参数,实现空提交:
$git commit --allow-empty -m "Empty"
以下操作,可以实现只修改提交作者,无需提交代码:
$ git commit --amend --author='Your Name <you@example.com>'
默认情况下,git不允许空提交。
可以使用allow-empty参数,实现空提交:
$git commit --allow-empty -m "Empty"
以下操作,可以实现只修改提交作者,无需提交代码:
$ git commit --amend --author='Your Name <you@example.com>'