如何使用 Android Studio 将 Android 项目推送到 github 中现有的私有空存储库? [英] How to push Android Project to existing private empty repository in github with Android Studio?
本文介绍了如何使用 Android Studio 将 Android 项目推送到 github 中现有的私有空存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 android studio 将 android 项目推送到私有的空仓库.但我找不到简单的解决方案.我怎样才能做到这一点 ?
I am trying to push android project to private empty repo with android studio . But I cannot find simple solution. How can I do this ?
推荐答案
Github 提供了帮助将现有代码库添加到已经存在的存储库中的指南,这里.虽然不是特定于 android studio,但它允许您使用您使用的任何正常提交方法.
Github helpfully provides a guide for adding an existing code base into a repository which already exists, here. Whilst not specific to android studio, it will allow you to use whatever normal commit method you use.
简而言之:
- 导航到您的代码存储库
- 运行命令
git init
- 使用
git add 添加要提交的文件.
- 提交更改:
git commit -m "your commit message"
- 添加远程源:
git remote add origin your@git:repo/name
- 验证远程 URL
git remote -v
- 推送更改
git push origin master
这篇关于如何使用 Android Studio 将 Android 项目推送到 github 中现有的私有空存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文