简体   繁体   English

Visual Studio 2013 git clone将项目文件放在错误的文件夹中

[英]visual studio 2013 git clone puts project files in wrong folder

I am using Visual Studio 2013 Pro. 我正在使用Visual Studio 2013 Pro。 I set the default repository location to a folder on my development drive, which is I: on my system. 我将默认存储库位置设置为开发驱动器上的文件夹,即系统上的I:。 I then cloned a repo from GIthub. 然后,我从GIthub克隆了一个仓库。 A folder with the project name was created in the repos folder on I, but the only item in it is the .git folder. 在I的repos文件夹中创建了一个具有项目名称的文件夹,但是其中唯一的项目是.git文件夹。 All of the project folders and files were written to the C: drive at the root. 所有项目文件夹和文件都已写入根目录的C:驱动器。 I am new to git, but in my searches everything I have found suggests I did this properly and I cannot find anyone else having this issue. 我是git的新手,但是在搜索中,发现的所有内容都表明我已正确执行此操作,而找不到其他人遇到此问题。 If anyone has ideas to find what might be happening here I would sure appreciate it. 如果有人有想法找到这里可能发生的事情,我一定会感激的。

THanks, Rob M. 谢谢,罗伯M.

Hi Rob have you signed into github from git bash, sounds like you have not pushed to your git repository. 嗨,罗布(Rob),您是否从git bash登录到github,听起来好像还没有推送到git存储库。 Try :git push -am origin master if all else fails have a look at the basics of git hub again here is a link that helped me. 如果所有其他方法都失败了,请尝试:git push -am origin master再次查看git hub的基础,这里的链接对我有所帮助。 visit: http://readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1 . 访问: http : //readwrite.com/2013/09/30/understanding-github-a-journey-for-beginners-part-1

Hope this helps!!!! 希望这可以帮助!!!!

Thought I should come back to this. 以为我应该回到这一点。 I finally found that .gitconfig in C:\\Users had an entry setting the WORKTREE to \\ , this was overiding undefined WORKTREEs in any project I cloned and writng the trunk to C:. 我终于发现C:\\ Users中的.gitconfig有一个将WORKTREE设置为\\的条目,这覆盖了我克隆的任何项目中未定义的WORKTREE,并将主干写入C:。

Thanks! 谢谢!

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

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