adding to the recommendation of doing an interactive 'git add' to show the shortcut to patching

This commit is contained in:
Michael Pavling
2017-07-25 09:05:14 +01:00
parent fd8411c652
commit 4b4fa6d8b9

View File

@@ -176,7 +176,7 @@ interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119).
documentation: documentation:
<https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project#_commit_guidelines> <https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project#_commit_guidelines>
2. You SHOULD never blindly commit all changes with "git commit -a". It is 2. You SHOULD never blindly commit all changes with "git commit -a". It is
RECOMMENDED you use "git add -i" to add individual changes to the staging RECOMMENDED you use "git add -p" or "git add -i" to add individual changes to the staging
area so you are fully aware of what you are committing. area so you are fully aware of what you are committing.
3. You SHOULD always use "--force-with-lease" when doing a force push. The 3. You SHOULD always use "--force-with-lease" when doing a force push. The
regular "--force" option is dangerous and destructive. More regular "--force" option is dangerous and destructive. More