Difference between revisions of "Git commit -a, --all"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 +
 +
[[git commit --all]] / [[git commit -a]]
  
 
  git status
 
  git status
Line 14: Line 16:
  
  
<code>git commit -a, --all</code>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: <code>[[git commit --help]]</code>
+
<code>git commit -a, --all</code>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: <code>[[git commit --help]]</code>
  
 
== Related terms ==
 
== Related terms ==
 +
* <code>[[git add]]</code>
 
* <code>[[git push]]</code>
 
* <code>[[git push]]</code>
* <code>[[git commit -an]]</code>
+
* <code>[[git commit -an]]</code> or [[--no-verify]]
  
 
== See also ==
 
== See also ==
 
* {{git commit}}
 
* {{git commit}}
* {{git}}
 
  
 
[[Category:Git]]
 
[[Category:Git]]

Latest revision as of 11:15, 19 January 2024

git commit --all / git commit -a
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, --allTell 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[edit]

See also[edit]

Advertising: