Difference between revisions of "Git add ."

From wikieduonline
Jump to navigation Jump to search
(Removed redirect to Git add)
Tag: Removed redirect
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
[[git add .]]
 +
[[git commit -m]] "Commit message"
 +
[[git push -u origin master]]
  
  
 +
== Errors ==
  
 +
warning: adding embedded git repository: eks/eks-cluster
 +
hint: You've added another git repository inside your current repository.
 +
hint: Clones of the outer repository will not contain the contents of
 +
hint: the embedded repository and will not know how to obtain it.
 +
hint: If you meant to add a submodule, use:
 +
hint:
 +
hint: [[git submodule add]] <url> eks/eks-cluster
 +
hint:
 +
hint: If you added this path by mistake, you can remove it from the
 +
hint: index with:
 +
hint:
 +
hint: git rm --cached eks/eks-cluster
 +
hint:
 +
hint: See "git help submodule" for more information.
  
  
{{git add}}
+
== Related ==
 +
* <code>[[git config --global]]</code>
 +
* <code>[[git push --set-upstream]] / -u</code>
 +
* [[.gitignore]]
 +
 
 +
== See also ==
 +
* {{git add}}
 +
 
 +
[[Category:Git]]

Latest revision as of 16:14, 30 January 2025

git add .
git commit -m "Commit message"
git push -u origin master


Errors[edit]

warning: adding embedded git repository: eks/eks-cluster
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: 	git submodule add <url> eks/eks-cluster
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: 	git rm --cached eks/eks-cluster
hint:
hint: See "git help submodule" for more information.


Related[edit]

See also[edit]

Advertising: