简体   繁体   English

如何使用SourceTree将新目录添加到以前从BitBucket克隆的本地存储库中?

[英]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.

相关问题 将主存储库从 Bitbucket 迁移到 Github。 如何将克隆的 repo 重新连接到新的 Github repo? - Migrated master repo from Bitbucket to Github. How to reconnect cloned repo to new Github repo? 如何使用 SourceTree 将本地存储库推送到 Bitbucket 而无需先在 bitbucket 上创建存储库? - How do I push a local repo to Bitbucket using SourceTree without creating a repo on bitbucket first? 从bitbucket克隆了一个仓库,想在github上创建一个新仓库 - Cloned a repo from bitbucket, want to create a new one on github 如何将从 perforce 克隆的本地存储库合并到现有的 GitHub 存储库中 - How to merge local repo cloned from perforce into an existing GitHub repo SourceTree将远程凭据添加到本地git仓库 - SourceTree Add remote credentials to local git repo 仅使用本地克隆副本创建新的回购 - Create a new Repo with the local cloned copy alone 如何使用sourcetree将dll添加到bitbucket - how to add dlls to bitbucket using sourcetree 将BitBucket的1GB +存储库克隆到SourceTree中 - Cloning a 1GB+ repo from BitBucket into SourceTree taking forever 尝试将更改从主存储库提取到本地分支并收到致命错误(bitbucket、sourcetree、vscode)。 我究竟做错了什么? - Trying to pull changes from master repo into local branch and receiving fatal error (bitbucket, sourcetree, vscode). What am I doing wrong? 如何将本地回购推送到bitbucket? - How to push a local repo to bitbucket?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM