mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 05:49:51 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/git-add
12
tldr/git-add
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add all files (tracked and untracked):
|
||||
|
||||
`git add -A`
|
||||
`git add {{--all|-A}}`
|
||||
|
||||
- Add all files in the current folder:
|
||||
|
||||
@@ -22,20 +22,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Only add already tracked files:
|
||||
|
||||
`git add -u`
|
||||
`git add {{--update|-u}}`
|
||||
|
||||
- Also add ignored files:
|
||||
|
||||
`git add -f`
|
||||
`git add {{--force|-f}}`
|
||||
|
||||
- Interactively stage parts of files:
|
||||
|
||||
`git add -p`
|
||||
`git add {{--patch|-p}}`
|
||||
|
||||
- Interactively stage parts of a given file:
|
||||
|
||||
`git add -p {{path/to/file}}`
|
||||
`git add {{--patch|-p}} {{path/to/file}}`
|
||||
|
||||
- Interactively stage a file:
|
||||
|
||||
`git add -i`
|
||||
`git add {{--interactive|-i}}`
|
||||
|
||||
Reference in New Issue
Block a user