为什么我对git所做的更改无法通过? [英] Why won't my changes in git go through?

查看:61
本文介绍了为什么我对git所做的更改无法通过?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要做的就是添加所有文件.

All I wanted to do was to add all files.

现在,我得到的只是图标目录,而我以前从未见过这样的目录.

Now I got directories that are just icons and I never saw something like that before.

我只想添加所有文件.我做到了

I just wanted to add all files. I did

git add *
git commit -m "added"
git push

现在我陷入了难以理解的混乱局面.

And now I got this incomprehensible mess.

您如何解释这种状态?

推荐答案

这些灰色文件夹是 gitlinks (索引中的特殊条目).
它们表示嵌套git存储库:父存储库仅记录其SHA1(您在灰色图标旁边看到的)

Those gray folders are gitlinks (special entry in the index).
They represent nested git repos: the parent repo only records their SHA1 (that you see beside the grey icons)

您需要确定是否要:

  • 将它们正确记录为 子模块
  • 完全忽略它们
  • 将其内容添加到您的存储库中(删除其内部的.git文件夹)
  • record them properly as submodules
  • ignore them completely
  • add their content in your repo (removing their inner .git folder)

注意:请勿使用git add *:*由外壳扩展.
使用git add .

Note: don't use git add *: the * is expanded by the shell.
Use git add .

这篇关于为什么我对git所做的更改无法通过?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆