git commit目录 [英] git commit directory

查看:154
本文介绍了git commit目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个回购站,并在本地将现有的项目目录拖放到回购站中。然后我做了一些像git add directory /并提交并推送它。当我在github上查看我的回购时,我所看到的是没有子文件夹但没有内容的目录。如何将该项目的所有文件和子文件夹推送到回购站点?

解决方案

如果文件位于本地提交,那么它们应该显示在Github上。



加载gitk(只需从Git bash命令提示符输入gitk);并检查文件夹下的所有文件是否实际添加到您推送到Github的提交中。



如果它们不是,并且是git add。似乎没有工作,检查你的.gitignore不排除他们出于某种原因。

I created a repo and, locally, dragged-and-dropped an existing project directory into the repo. I then did something like git add directory/ and committed it and pushed it. When I look at my repo on github though, all i see is the directory with no subfolders, no content. How do I push all of the files and subfolders of that project to the repo?

解决方案

If the files are in your local commit, then they should be displayed on Github.

Load up gitk (just type gitk from your Git bash command prompt); and check to see whether all the files below the folder were actually added in the commit you pushed to Github.

If they weren't, and a git add . doesn't seem to be working, check that your .gitignore isn't excluding them for some reason.

这篇关于git commit目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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