如何使用Android Studio将Android Project推送到github中的现有私人空仓库? [英] How to push Android Project to existing private empty repository in github with Android Studio?

查看:238
本文介绍了如何使用Android Studio将Android Project推送到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帮助提供了一个指南,用于将现有的代码库添加到已存在的存储库中, here 。虽然不是特定于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提交-m你的提交信息

  • 添加远程来源: git remote add origin your @ git:repo / name

  • 验证远程URL git remote -v

  • 更改 git push origin master

  • navigate to your code repository
  • run the command git init
  • add the files to commit with git add .
  • commit the changes : git commit -m "your commit message"
  • add the remote origin : git remote add origin your@git:repo/name
  • verify the remote URL git remote -v
  • push the changes git push origin master

这篇关于如何使用Android Studio将Android Project推送到github中的现有私人空仓库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆