Description
How could the content be improved?
In the Reverting a committ challenge there is a paragraph:
The command
git revert
is different fromgit restore -s [commit ID] .
becausegit restore
returns the files not yet committed within the local repository to a previous state, whereasgit revert
reverses changes committed to the local and project repositories.
Which is hard to understand, we are considering changing it to:
The command
git revert
is
different fromgit restore -s [commit ID] .
.
git restore
restores files within the local repository to a previous state,
whereasgit revert
restores the files to a previous state and
adds then commits these changes to the local repository.
Sogit revert
here is the same asgit restore -s [commit ID]
followed bygit commit -am Reverts: [commit]
.
So it's clearer what the difference is between the two commands.