Unstage Files

Unstage A Single File

If you've added a file using git add but haven't committed it yet. You can unstage it using the following command.

git reset HEAD a.txt

Unstage All Staged File

All staged files will be unstaged. Meaning they'll go back to the modified or untracked state.

git reset

 

Cookbook Category: 

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.