diff --git a/git/add.md b/git/add.md index a7dab3e..37c7976 100644 --- a/git/add.md +++ b/git/add.md @@ -1,5 +1,5 @@ # Git Add Methods -## Git Add Sections +## Git Add Lines ### `git add -e` 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. @@ -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 unstage a change, add a "-" at the beginning of the line. - To keep a line unchanged, leave it as is. +## Git Add Hunks ### `git add -p` 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.\