-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git: Command to stage all selected files #26764
Comments
I tried that before, but that will just stage all available changes. I am trying to stage all selected changes. So if I have made changes to 8 files, but only want to stage 3 of them, I want to be able to select the 3 files in the explorer and use a keyboard shortcut to stage only the selected files. |
This isn't currently supported. |
@joaomoreno It IS currently supported but there obviously is a bug. It's supported simply by selecting multiple files in Source Control, right clicking and picking "Stage Changes". The problem is that the corresponding command only stages ONE file (always the first chosen) whenever one invokes it via designated keyboard shortcut instead of right clicking. So obviously it's a bug. Reproduce:
|
@gandalfsaxe Correct. Closing this for the original issue. #24916 is for the keyboard issue. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
I'm not sure if this is a bug or not, but currently I'm not able to stage multiple files at a time using a keyboard shortcut. I am able to do this using the UI (by clicking the "Stage" button on one of the selected files), but not with a configured keyboard shortcut.
For example, in SourceTree I'm used to selecting a few files (by either control- or shift-clicking), then hitting the space bar to stage them. I tried adding the space bar as a shortcut for the "git.stage" command, but this will only commit a single file in the selection, not all selected files.
Steps to Reproduce:
Expected Result: All selected files should be staged and appear in the "Staged Changes" section
Actual Result: Only the top file in the selected set is staged
Related to this, is there a context for keyboard shortcuts that is specific to when the Source Control pane of the explorer is active? I didn't see one listed in the documentation on the site.
The text was updated successfully, but these errors were encountered: