add subtitle for git add -p
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Git Add Methods
|
# Git Add Methods
|
||||||
## Git Add Sections
|
## Git Add Lines
|
||||||
### `git add -e`
|
### `git add -e`
|
||||||
Select lines of changes interactively. This allows you to stage only specific lines of changes in a file.\
|
Select lines of changes interactively. This allows you to stage only specific lines of changes in a file.\
|
||||||
Pros: More control over what gets staged.
|
Pros: More control over what gets staged.
|
||||||
@@ -11,6 +11,7 @@ Cons: More manual work, you have to edit the patch file yourself, which can be e
|
|||||||
- To stage a change, add a "+" at the beginning of the line.
|
- To stage a change, add a "+" at the beginning of the line.
|
||||||
- To unstage a change, add a "-" at the beginning of the line.
|
- To unstage a change, add a "-" at the beginning of the line.
|
||||||
- To keep a line unchanged, leave it as is.
|
- To keep a line unchanged, leave it as is.
|
||||||
|
## Git Add Hunks
|
||||||
### `git add -p`
|
### `git add -p`
|
||||||
Select hunks of changes interactively. This allows you to stage only parts of the changes in a file.\
|
Select hunks of changes interactively. This allows you to stage only parts of the changes in a file.\
|
||||||
Pros: Easier to use than the -e method for staging specific parts of changes.\
|
Pros: Easier to use than the -e method for staging specific parts of changes.\
|
||||||
|
|||||||
Reference in New Issue
Block a user