简体   繁体   English

如何找到您的github仓库名称

[英]how to find your github repository name

My problem is two fold. 我的问题有两个。 I have my node js directory I never should have uploaded to my repository. 我有我的node js目录,我永远都不会上传到我的存储库。 I have since then added it to get ignore but it is still in my repository. 从那以后,我添加了它以使其忽略,但它仍在我的存储库中。 Because of some long file names "node_modules" has, I am unable to clone my repository through github (it errors out). 由于“ node_modules”具有一些长文件名,因此我无法通过github克隆我的存储库(它出错了)。 I just need to wipe the entire directory. 我只需要擦除整个目录。 I am fine with the nuclear option too, but I can't get in to do it. 我也对核选择感到满意,但我无法介入。

So I opened up git gui (I have no issue using the git console, I would have the same problem though) but it asks me to open an existing repository. 因此,我打开了git gui(使用git控制台没有问题,尽管我也会遇到同样的问题),但是它要求我打开现有的存储库。 I put in the github clone URL of the particular repository with and without the https and it just says that is what I typed in is not a Git repository. 我输入了带有或不带有https的特定存储库的github克隆URL,它只是说我输入的不是Git存储库。

If it helps any my git repository is: https://github.com/shellwe/Great-Plains-Landscaping-WP 如果有帮助的话我的git仓库是: https : //github.com/shellwe/Great-Plains-Landscaping-WP

The nuclear option is fine if you want to reupload it 如果您想重新上传核选项

Do a git init in a blank folder, or create a new repository in the GUI (to a blank folder) 在空白文件夹中执行git init ,或在GUI中创建新存储库(至空白文件夹)

Add the remote end point to https://github.com/shellwe/Great-Plains-Landscaping-WP.git 将远程端点添加到https://github.com/shellwe/Great-Plains-Landscaping-WP.git

Commit something to the repository (such as a new LICENCE file) 向存储库提交一些内容(例如新的LICENSE文件)

Push with git push -f origin master , or if you want to use the git GUI, press push and check force overwrite existing branch. 使用git push -f origin master ,或者如果您想使用git GUI,请按push并检查是否强制覆盖现有分支。 This will delete everything in the repository and start you off with just a licence file. 这将删除存储库中的所有内容,并仅从许可证文件开始。

Your repository can be cloned just fine in command-line on Linux. 您可以在Linux上的命令行中很好地克隆您的存储库。 It may have filenames issues on Windows, but if you have access to a non-Windows machine, you should do your cleaning there and push the result. 它在Windows上可能存在文件名问题,但是如果您可以访问非Windows计算机,则应在此进行清理并推送结果。

clone works with git-gui too, but you need to select "clone existing repository". clone也可以与git-gui一起使用,但是您需要选择“克隆现有存储库”。 "Open an existing repository" is for local repositories (ie after you did the clone). “打开现有存储库”用于本地存储库(即完成克隆后)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM