0

I commited a new log entry with:

git commit -am "newLogEntry"

Now I want to change the name of my last log entry... (overwriting the last one).

How can I do that? What is the code for that in Git?

DataMower
  • 3
  • 1

1 Answers1

1

If you want to change the name of the last commit, you can write

git commit --amend -m "New name".

You can find more information about git commit here: https://git-scm.com/docs/git-commit

ryabv
  • 198
  • 2
  • 10