Reputation: 1518
After making changes to a tracked files in a Git repository, GitKraken allows you to view default hunks per file. You are given the option to Stage or Discard these hunks.
git add --patch
provides the option to split hunks into smaller hunks. I am wondering whether this functionality exists within GitKraken and, if so, how to utilize it.
Upvotes: 1
Views: 1210
Reputation: 293
In Gitkraken's diff view you can stage/unstage/discard multiple lines by selecting them (click and drag over the lines, the text of the lines is now marked blue) and then right click to choose what you want to do.
For staging single lines there is also a green plus which appears next to the line when you hover your mouse over it. Click on the green plus to stage the line.
This Gitkraken support site shows this in the following screenshot:
Upvotes: 6