Git 我怎样才能改变';更新';更新

Git 我怎样才能改变';更新';更新,git,Git,我用 git commit-m“更新一些文件” 要提交对我的项目的更改,但我写了一个错误词'updatea',我想将其更改为'update',那么我该怎么办?如果您没有将提交推送到远程,您可以通过运行git commit--amend-m'updated the files:list of files'来修改上次提交 文件: 可能的dup

我用

git commit-m“更新一些文件”


要提交对我的项目的更改,但我写了一个错误词'updatea',我想将其更改为'update',那么我该怎么办?

如果您没有将提交推送到远程,您可以通过运行
git commit--amend-m'updated the files:list of files'
来修改上次提交

文件:

可能的dup