Stage only part of a file in git
In order to add only some lines of a file for committing, use git add -p <filename>
. If the file is new, use git add -N <filename>
. Look up this SO link for more.
In order to add only some lines of a file for committing, use git add -p <filename>
. If the file is new, use git add -N <filename>
. Look up this SO link for more.
Leave a Comment