Forrest logo
back to context overview

git-restore

List of commands for git-restore:

  • git-restore:tldr:0d415 git-restore: Discard all changes to files, both staged and unstaged.
    $ git restore --worktree --staged :/
    try on your machine
    explain this command
  • git-restore:tldr:27609 git-restore: Interactively select sections of files to restore.
    $ git restore --patch
    try on your machine
    explain this command
  • git-restore:tldr:4b642 git-restore: Unstage all files.
    $ git restore --staged :/
    try on your machine
    explain this command
  • git-restore:tldr:620e7 git-restore: Restore an unstaged file to the version of a specific commit.
    $ git restore --source ${commit} ${filename}
    try on your machine
    explain this command
  • git-restore:tldr:66e44 git-restore: Unstage a file.
    $ git restore --staged ${filename}
    try on your machine
    explain this command
  • git-restore:tldr:8d64d git-restore: Restore an unstaged file to the version of the current commit (HEAD).
    $ git restore ${filename}
    try on your machine
    explain this command
  • git-restore:tldr:9f64e git-restore: Discard all unstaged changes to tracked files.
    $ git restore :/
    try on your machine
    explain this command
back to context overview