然后我这样做了,npm version patch然后cat package.json看到该版本已更改。然后做git add package.json然后git commit -m "new version"看
# On branch master
nothing to commit, working directory clean
当我手动更改 package.json 中的版本时,我可以git commit按预期进行。但是使用npm version patch起来更快。那么如何提交呢?