Development Tools Introduction to Git Managing Committed Files Removing Files

polentz
seal-mask
.a{fill-rule:evenodd;}techdegree
polentz
Full Stack JavaScript Techdegree Student 11,750 Points

without using `git rm`

After deleting the file (rm tin.html), I did git add . and then git commit -m "message" and apparently I achieved the same result without using git rm

Is that a correct approach?

1 Answer

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

Git rm saves you from having to type the rm command by itself and then having to use the git add. It's a command that combines these two commands together to achieve the same process. Which is therefore more efficient.