【发布时间】:2018-11-22 12:54:25
【问题描述】:
我在 Android Studio 中创建了一个新项目,我想将它添加到当前为空的现有 GitHub 存储库中。
我已经尝试过这个问题的答案:Replace GitHub repository with a new Android Studio project while preserving old commits
但是一旦我到达最后的git push,我就会收到一条错误消息fatal: No configured push destination.
我也尝试过https://github.community/t5/How-to-use-Git-and-GitHub/How-to-link-an-existing-Android-Studio-Project-to-an-existing/td-p/1946,但这会将项目上传到错误的 GitHub 帐户。我有两个 GitHub 帐户,我认为这是这个解决方案的问题,我已经退出了我不需要的帐户。
还有其他方法可以连接到现有的 GitHub 存储库吗?
【问题讨论】:
标签: git android-studio github