-- Leo's gemini proxy

-- Connecting to freeshell.de:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

git restore


> Restore working tree files. Requires Git version 2.23+.

> See also `git checkout` and `git reset`.

More information.


Restore an unstaged file to the version of the current commit (HEAD):

git restore {path/to/file}

Restore an unstaged file to the version of a specific commit:

git restore --source {commit} {path/to/file}

Discard all unstaged changes to tracked files:

git restore :/

Unstage a file:

git restore --staged {path/to/file}

Unstage all files:

git restore --staged :/

Discard all changes to files, both staged and unstaged:

git restore --worktree --staged :/

Interactively select sections of files to restore:

git restore --patch


> Copyright © 2014—present the tldr-pages team and contributors.

> This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY



-- Response ended

-- Page fetched on Fri May 17 17:26:48 2024