Difference between revisions of "Git commit -a, --all"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 17: | Line 17: | ||
== Related terms == | == Related terms == | ||
+ | * [[git add]] | ||
* <code>[[git push]]</code> | * <code>[[git push]]</code> | ||
* <code>[[git commit -an]]</code> | * <code>[[git commit -an]]</code> |
Revision as of 03:23, 31 May 2023
git status On branch main Your branch is up to date with 'origin/main'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: MyModifiedFile.txt modified: MyOtherModifiedFile.txt no changes added to commit (use "git add" and/or "git commit -a")
git commit -a, --all
Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected. Ref: git commit --help
Related terms
See also
git commit [ -a | -an | --amend | --amend --reset-author | --no-verify | -m | -S ]
Advertising: