Interactive add with Git gui

The interactive features of git add are really powerful for creating clean commits that only contain a single logical change, even though it was coded as a mix of feature adding and bug fixing. The downside of the interactive git add feature is that it is hard to get an overview of all the changes that exist in the file when only being showed one hunk at a time. To get a better overview of the changes and still be able to only add selected hunks (and even single lines), we can use git gui. Git GUI is normally distributed with the Git installation (MsysGit on Windows) and can be launched from the command line: git gui. If your distribution doesn't have Git GUI available, you can probably install it from the package ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.