看到一个回购下的两个项目;期待只见一个

时间:2014-10-02 15:04:04

标签: git github

是Git的新手并且还在努力解决问题。为什么我在 TestProject 回购下面都看到 TestProject WebAppWithSeleniumTest ,而不是相反?

在我的GitHub帐户中,我创建并填充了两个公共存储库:

https://github.com/robertmarkbram/TestProject https://github.com/robertmarkbram/WebAppWithSeleniumTest

每次我都遵循相同的模式:

  1. 在Eclipse中创建项目。
  2. 在GitHub中创建一个同名的回购。
  3. 将项目添加到本地Git仓库。
  4. 将项目推送到我创建的远程GitHub仓库。
  5. 但如上所述,在 TestProject repo下,我看到 TestProject WebAppWithSeleniumTest

    under the **TestProject** repo I see **TestProject** *and* **WebAppWithSeleniumTest**

    但是,在 WebAppWithSeleniumTest repo下,我只看到 WebAppWithSeleniumTest (正如预期的那样)。

    Under the **WebAppWithSeleniumTest** repo I only see **WebAppWithSeleniumTest** (as expected)

    我做错了吗?

1 个答案:

答案 0 :(得分:0)

我解决了这个问题。我已将两个项目本地添加到同一个存储库中。因此,当我远程提交第二个存储库时,它提交了两个项目的内容。

相关问题