Skip to content

Commit

Permalink
Deleted duplicated paragraph (#902)
Browse files Browse the repository at this point in the history
* Deleted duplicated paragraph

Deleted the duplicated paragraph "Committing Changes" (already in the paragraph "Staging and Committing Files") and changed "git add" to "git add -p". All accordingly to #888

* Corrected "git add -p"

Corrected a mistake with "git add -p" and added the normal "git add" command again

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
  • Loading branch information
Darnokiv and ezio-melotti authored Jun 22, 2022
1 parent a27e62a commit 2714ab8
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions gitbootcamp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ Staging and Committing Files

2. To stage the files to be included in your commit::

git add <filename1> <filename2>
git add -p # to review and add changes to existing files
git add <filename1> <filename2> # to add new files

3. To commit the files that have been staged (done in step 2):

Expand Down Expand Up @@ -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 <filename>

Commit the files:

.. code-block:: bash
git commit -m "<message>"
.. _diff-changes:

Comparing Changes
Expand Down

0 comments on commit 2714ab8

Please sign in to comment.