Skip to content

Commit

Permalink
git: add git add --update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lamonaca committed Feb 6, 2024
1 parent 3f95592 commit 74342ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/misc/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def load_reference(name_or_id):
### Making Changes

`git status`: shows the status of changes as untracked, modified, or staged
`git add <filename1 filename2 ...>`: add files to the staging area
`git add -p|--patch <files>`: interactively stage chunks of a file
`git add <files>`: add files contents to the staging area
`git add -u|--update <files>`: stage changes but ignore untracked files
`git add -p|--patch <files>`: interactively stage chunks of files

`git blame <file>`: show who last edited which line
`git blame -L <start>,<end> -- <file>`: Annotate only the line range given by `<start>,<end>`, within the `<file>`
Expand Down

0 comments on commit 74342ea

Please sign in to comment.