git commit -p (a cool git command)

I recently learned the -p option of git commit. It allows you to see your changes and decide whether to commit them.

git commit -p

Allows you to review and add changes to your commit

or, as the git documentation says

-p or –patch
Use the inte…


This content originally appeared on DEV Community and was authored by Max Cohen

I recently learned the -p option of git commit. It allows you to see your changes and decide whether to commit them.

git commit -p

Allows you to review and add changes to your commit

or, as the git documentation says

-p or --patch
 Use the interactive patch selection interface to choose which changes to commit. See git-add[1] for details.

https://lnkd.in/gaTMSuBr


This content originally appeared on DEV Community and was authored by Max Cohen


Print Share Comment Cite Upload Translate Updates
APA

Max Cohen | Sciencx (2024-08-16T03:38:59+00:00) git commit -p (a cool git command). Retrieved from https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/

MLA
" » git commit -p (a cool git command)." Max Cohen | Sciencx - Friday August 16, 2024, https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/
HARVARD
Max Cohen | Sciencx Friday August 16, 2024 » git commit -p (a cool git command)., viewed ,<https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/>
VANCOUVER
Max Cohen | Sciencx - » git commit -p (a cool git command). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/
CHICAGO
" » git commit -p (a cool git command)." Max Cohen | Sciencx - Accessed . https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/
IEEE
" » git commit -p (a cool git command)." Max Cohen | Sciencx [Online]. Available: https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/. [Accessed: ]
rf:citation
» git commit -p (a cool git command) | Max Cohen | Sciencx | https://www.scien.cx/2024/08/16/git-commit-p-a-cool-git-command/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.