How to git stage changes in JetBrains IDE or similar functionality
To separate files that you want to commit/push later, you can use changelists.
- Select View | Tool Windows | Version Control (or press
Alt+9
) to open the Version Control tool window. - In the Local Changes tab of the tool window, select one or multiple items.
- Right-click and select Move to Another Changelist..., or press
Alt+Shift+M
, to move selected items to an existing or a new changelist. Select Set active if you want all new modifications to be auto-added to the new/target checklist.
The above is applicable to Rider and all other IntelliJ Platform-based IDEs (IntelliJ IDEA, WebStorm, PyCharm, PhpStorm etc.), as well as to all version control systems that they support (Git, Mercurial, Subversion, Perforce out of the box; other VCS via plugins).
Source: Official Rider docs