Git

tig

commit only part of the file

  • Press d to switch to diff mode.
  • Move to lines that you want to commit, and stage them using u
  • Go back using q
  • Switch to to stage view S
  • C to commit changes