Git 不推送所有文件和文件夹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23880373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:07:38  来源:igfitidea点击:

Git not pushing all files and folders

gitgithub

提问by user3397452

In here you can see my Git Bash processIn here is my GitHub repo on GitHub websiteIn here is what my master directory looks like

在这里你可以看到我的 Git Bash 进程这是我在 GitHub 网站上的 GitHub 存储库In here is what my master directory looks like

I'm trying to push the whole directory onto my repository. Every time I try to do this, it just pushes the README, nothing else. As you can see in the second photo, there is only README on there. In the third picture is what my master directory looks like. The first picture is the whole process of adding and pushing, showing you that I've done the necessary steps.

我正在尝试将整个目录推送到我的存储库中。每次我尝试这样做时,它只会推送自述文件,没有别的。正如您在第二张照片中看到的,那里只有自述文件。第三张图是我的主目录的样子。第一张图是加推的全过程,说明我已经做了必要的步骤。

What do I need to do to ensure all files and folders get pushed?

我需要做什么来确保所有文件和文件夹都被推送?

回答by Jephron

Use git add *to add all files in a directory.

使用git add *添加目录中的所有文件。

You also need to make sure you run git commit -m "your commit message"before you push

您还需要确保git commit -m "your commit message"在推送之前运行

回答by Jose Pablo Castillo

I solve it for me. I had the same exact problem.

我为我解决。我有同样的问题。

Over the .git file in the main file there is a config. Look over the file_mode and ignorecase as i setup.

在主文件中的 .git 文件上有一个配置。在我设置时查看 file_mode 和 ignorecase。

enter image description here

enter image description here