mirror of
https://github.com/jimeh/common-flow.git
synced 2026-02-19 01:16:40 +00:00
Swap order of "git add -i" and "git add -p"
Using the -p option is a shorthand to get into the patch section of interactive mode. Hence the -i option is the main one to use.
This commit is contained in:
@@ -209,8 +209,9 @@ 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 -p" or "git add -i" to add individual changes to the staging
|
RECOMMENDED you use "git add -i" or "git add -p" to add individual
|
||||||
area so you are fully aware of what you are committing.
|
changes to the staging 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
|
||||||
information:
|
information:
|
||||||
|
|||||||
Reference in New Issue
Block a user