Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 465 Bytes

File metadata and controls

9 lines (5 loc) · 465 Bytes

Stage Partial Changes in Git

Today I learned about the use of the p flag on git add, i.e. git add -p which will allow you to interactively add files to a commit, i.e. stage partial changes.

Mind. Blown.

This tip came from a video posted by PyBites on their YouTube Channel

You can see the specific use of -p at the 9:42 of the video PyBites Git Tricks Training