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
Git not pushing all files and folders
提问by user3397452
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"
在推送之前运行