Git不推送所有文件和文件夹 [英] Git not pushing all files and folders

查看:275
本文介绍了Git不推送所有文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我试图将整个目录推送到我的存储库。
每次我尝试这样做时,它都会推送自述文件,除此之外别无它法。正如你在第二张照片中看到的那样,那里只有README。第三张图片是我的主目录的样子。第一张照片是添加和推送的整个过程,告诉您我已经完成了必要的步骤。



我需要做些什么来确保所有文件和文件夹使用 git add * 来添加所有文件一个目录。



在您推送之前,您还需要确保运行 git commit -m您的提交消息 p>

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?

解决方案

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

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

这篇关于Git不推送所有文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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