Search code examples
gitgit-rm

"Delete" or "Remove". What the word is better for commit messages?


My English isn't mother tongue, so I want to understand what the word "delete" or "remove" is better when we commit file deletion? For example:

rm commitedLater.file
git add -u
git commit -m "Remove/Delete the unnecessary file"

The question may seem strange, but sometimes I'm really confused)


Solution

  • In this context, I would say the words are synonymous.

    In the abstract, "delete" has the connotation of destroying the deleted item, whereas "remove" implies only taking it out of a collection.

    As in

    "I deleted the typo by erasing it",

    and

    "I removed the page from the tablet, so that I could write on it more easily"