git-*: convert options to longform and minor fixes (#13441)
Co-authored-by: spageektti <git@spageektti.cc> Co-authored-by: Fazle Arefin <fazlearefin@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
- Add all files (tracked and untracked):
|
||||
|
||||
`git add -A`
|
||||
`git add {{--all|-A}}`
|
||||
|
||||
- Add all files in the current folder:
|
||||
|
||||
@@ -17,20 +17,20 @@
|
||||
|
||||
- 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