Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Rollback FileNew to Visual Studio Code? Get it now.
Git Rollback File

Git Rollback File

Arman Tang

|
6 installs
| (0) | Free
Quickly rollback file changes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

git-rollback README

Quickly rollback file changes.

Usage

  1. Open any file that has been modified in editor;
  2. Press Cmd+R Cmd+R to rollback file.

Internal

Rollback changes on file:

  • For untracked file, use git clean -fx <file>
  • For tracked file, use git restore -WS <file>

Requirements

  • git >= 2.23
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft