Difference between revisions of "Git add -A"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<code>[[git add]] -A</code> | <code>[[git add]] -A</code> | ||
+ | |||
+ | [[git add]] -A -v | ||
+ | add 'file1.yml' | ||
+ | add 'path/to/yourfile/file2.yaml' | ||
+ | add 'pathtoyourfile/file3.yaml' | ||
+ | |||
+ | [[git add --help]] | ||
+ | -A, --all, --no-ignore-removal | ||
+ | Update the index not only where the working tree has a file matching <pathspec> but also where the index already has an entry. This adds, modifies, and removes | ||
+ | index entries to match the working tree. | ||
+ | |||
+ | If no <pathspec> is given when -A option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current | ||
+ | directory and its subdirectories). | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[git add .]]</code> | ||
+ | * <code>[[git commit]]</code> | ||
==See also== | ==See also== |
Latest revision as of 09:25, 16 November 2022
git add -A
git add -A -v add 'file1.yml' add 'path/to/yourfile/file2.yaml' add 'pathtoyourfile/file3.yaml'
git add --help -A, --all, --no-ignore-removal Update the index not only where the working tree has a file matching <pathspec> but also where the index already has an entry. This adds, modifies, and removes index entries to match the working tree.
If no <pathspec> is given when -A option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories).
Related[edit]
See also[edit]
git add
,git add -A, git add --help
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: