Zev Spitz
Zev Spitz

Reputation: 15327

"There are no staged changes to commit" dialog box

When I have no staged changes, and I try to commit, I get the following dialog box:

enter image description here

If I choose Always, will unstaged changes be auto-committed in the future only if there are no staged changes? Or even if there are some staged changes?

Upvotes: 33

Views: 62538

Answers (2)

ibamboo
ibamboo

Reputation: 1577

enter image description here

enter image description here

in the list of CHANGES list, click the plus icon button on right side to make item to be staged.

Upvotes: 19

Alex
Alex

Reputation: 67609

When there are no staged changes.

You can check it for yourself and disable at any moment from settings.json

// Commit all changes when there are no staged changes.
"git.enableSmartCommit": false,

Upvotes: 12

Related Questions