Revert and reword Git commits, control commit message style with Rider

What else is new in Rider 2017.2 EAP? Among other improvements, Rider is now based on a more recent version of the IntelliJ platform, which gives us a set of improvements in support for version control systems.

When working with Git, we added support for reverting and rewording commits. From the Log tab in the version control tool window, it’s now possible to revert a commit or change the commit message for any commits that have not been pushed yet.
Reword Git commit

From the settings under Version Control | Commit Dialog, we can customize the rules (and inspections) applied to commit messages: do we need a blank line between the subject and the body? Is there a maximum length? Rider also provides quick-fixes for these, and reformatting code can also be done inside the commit message.
Inspections for commit message

We made some usability improvements to the Shelf tab: the Show Diff action now by default compares the shelved version to the base version instead of local (when possible). Also the raw patch content can be seen in the Preview tab.

Please download Rider 2017.2 EAP and give the new build a try!

About Maarten Balliauw

Maarten Balliauw is a Developer Advocate at JetBrains, working on .NET tools and Space. He focuses on .NET, Azure, web technologies and application performance. Maarten is a frequent speaker at various national and international events. In his free time, he brews his own beer. Follow him on Twitter or check out his personal blog.
This entry was posted in How-To's and tagged , , . Bookmark the permalink.

3 Responses to Revert and reword Git commits, control commit message style with Rider

  1. Dan Mooney says:

    My colleague doesn’t see the “Reword” option in the context menu for PHPStorm, and the hotkeys don’t trigger the dialog for him. Does this need to be enabled?

  2. MichaelD says:

    Thaaaanks ! It keeps me from having my superiors slapping me on the wrists. :p

Leave a Reply to MichaelD Cancel reply

Your email address will not be published. Required fields are marked *