Difference between revisions of "Git add ."
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[git add .]] | [[git add .]] | ||
− | [[git commit -m]] " | + | [[git commit -m]] "Commit message" |
[[git push -u origin master]] | [[git push -u origin master]] | ||
+ | == Errors == | ||
− | [[git | + | 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: