Skip to content
Discussion options

You must be logged in to vote

Do you mean git restore --staged, i.e. discarding any non-committed changes since the last commit?

That's done by pressing d on a file, it will ask you if you wish to discard all changes (staged and unstaged) or discard unstaged changes, i.e. just the ones you haven't added to the staging index.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@seiyab
Comment options

Answer selected by seiyab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants