diff --git a/gitbootcamp.rst b/gitbootcamp.rst index 9196da081..6ab834f1f 100644 --- a/gitbootcamp.rst +++ b/gitbootcamp.rst @@ -194,7 +194,8 @@ Staging and Committing Files 2. To stage the files to be included in your commit:: - git add + git add -p # to review and add changes to existing files + git add # to add new files 3. To commit the files that have been staged (done in step 2): @@ -225,21 +226,6 @@ To re-apply the last stashed change:: git stash pop -.. _commit-changes: - -Committing Changes ------------------- - -Add the files you want to commit:: - - git add - -Commit the files: - -.. code-block:: bash - - git commit -m "" - .. _diff-changes: Comparing Changes