Committing partial changes from file in Git

git add -p file 
-p stands for patch mode, You can also use
git add --patch  file 
This gives the user a chance to review the difference before adding modified contents to the index.

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Remove duplicates from a JavaScript Array

Sending Binary Data over the Network with Json