Skip to content

Commit 2714ab8

Browse files
Deleted duplicated paragraph (#902)
* 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 <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
1 parent a27e62a commit 2714ab8

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

gitbootcamp.rst

+2-16
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ Staging and Committing Files
194194

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

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

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

@@ -225,21 +226,6 @@ To re-apply the last stashed change::
225226

226227
git stash pop
227228

228-
.. _commit-changes:
229-
230-
Committing Changes
231-
------------------
232-
233-
Add the files you want to commit::
234-
235-
git add <filename>
236-
237-
Commit the files:
238-
239-
.. code-block:: bash
240-
241-
git commit -m "<message>"
242-
243229
.. _diff-changes:
244230

245231
Comparing Changes

0 commit comments

Comments
 (0)