I have changes like above in 3 different parts of the same file. I didn't know that you could selectively commit things in Git. Perhaps Intellij does that all for you by a GUI. It's nice to know we can even use commands for it.

  1. I needed to drop the folder strucutre to use git inside of the folder where the file is.
  2. git add --patch . What is interesting is that we are usually inclined to "commit" when the file already exists. This pluralsight has shown that you can keep using the git add comman for existing file with changes
  3. You can see the changes - at least the first change - in the terminal section.

This free site is ad-supported. Learn more