Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to unstage a change in git

#to unstage changes in a file
git restore --staged <file>

#to unstage all changes
git restore --staged .
 
PREVIOUS NEXT
Tagged: #unstage #change #git
ADD COMMENT
Topic
Name
3+3 =