Interactively stage parts of a given file

git stage

  • Add file contents to the staging area.
    Synonym of `git add`.
    More information: <https://git-scm.com/docs/git-stage>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git stage -p {{path/to/file}}

click the source code to copy install git stage on any operating system with command-not-found.com