[英]How to add with SourceTree a new directory to a local repo previously cloned from BitBucket?
I created a repo in Bitbucket, then cloned it locally. 我在Bitbucket中创建了一个存储库,然后将其克隆到本地。 This tut here explain how to add which is straightforward. 这里的教程介绍了如何添加简单明了的内容。 My issue is how to a new directory. 我的问题是如何创建新目录。 I dropped the new dir in the project but SourceTree is not showing the newly added directory. 我在项目中删除了新目录,但SourceTree没有显示新添加的目录。 But, if I add a new file it shows it in SourceTree's file status and you can commit and the push it. 但是,如果我添加一个新文件,它将以SourceTree的文件状态显示它,您可以提交并推送它。 What am I doing wrong? 我究竟做错了什么?
Well, after many hours I found what was causing this issue. 好了,几个小时后,我发现了导致此问题的原因。 It was a .git file. 这是一个.git文件。 rm -rf .git
should remove any .git related. rm -rf .git
应该删除所有相关的.git。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.