-
-
Notifications
You must be signed in to change notification settings - Fork 962
Description
How could the content be improved?
In the Reverting a committ challenge there is a paragraph:
The command
git revertis different fromgit restore -s [commit ID] .becausegit restorereturns the files not yet committed within the local repository to a previous state, whereasgit revertreverses changes committed to the local and project repositories.
Which is hard to understand, we are considering changing it to:
The command
git revertis
different fromgit restore -s [commit ID] ..
git restorerestores files within the local repository to a previous state,
whereasgit revertrestores the files to a previous state and
adds then commits these changes to the local repository.
Sogit reverthere 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.