How to add files to git stage in JetBrains Rider? Is this feature implemented? If it's not implemented then in which window can I look through the staged files which I've staged using some external tool?
[UPD]: The use case is to hold separately files I want to commit and files I don't want to commit at the particular moment. Stash is not the solution because I need all changes to be present. VS has this functionality and it's very convenient. You can stage and unstage any files with a single right mouse button click.
First, you edit your files in the working directory. When you're ready to save a copy of the current state of the project, you stage changes with git add . After you're happy with the staged snapshot, you commit it to the project history with git commit .
You can use Find Actions which is ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux) and then search for 'Git Staging' to enable Git Staging instead of IntelliJ IDEA Changelists.
Open the project that you want to put under Git. Press Alt+` to open the VCS Operations Popup and select Enable Version Control Integration. Alternatively, from the main menu, select VCS | Enable Version Control Integration. Choose Git as the version control system and click OK.
To separate files that you want to commit/push later, you can use changelists.
Alt+9
) to open the Version Control tool window.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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With