Replaces the working-tree copy of the file with its content from the given revision. The --source flag selects where the content comes from; without it restore uses the index. It is the modern replacement for the git checkout commit file form.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.