How does the -p option change the behavior of the git add command
-p
git add
It allows developers to interactively choose which files are committed and outputs the differences for review.
It causes tracked files in the parent directory to be included in the staged files.
It allows developers to interactively choose which changes to tracked files are staged and outputs the differences for review.
It automatically pushes changes to the corresponding branch on the remote repository.