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