简体   繁体   English

在不克隆的情况下将Android Studio代码推送到Bitbucket

[英]Pushing the Android Studio code to Bitbucket without Cloning

I have a project which was on my another laptop. 我有另一个笔记本电脑上的项目。 The same android project is present in Bitbucket. Bitbucket中存在相同的android项目。 I changed the laptop and imported the project in Android Studio and started working. 我更换了笔记本电脑,并将项目导入了Android Studio,然后开始工作。

Now, I have changed the code in my local repo. 现在,我已经更改了本地存储区中的代码。 As I did not connect the bitbucket with the Android studio, I did not push the code. 由于我没有将Bitbucket与Android Studio连接,因此我没有推送代码。 Now I am trying to connect the project with Bitbucket but not sure how to do it. 现在,我正在尝试将项目与Bitbucket连接,但不确定如何执行。

Can someone please help me on how to push my code without cloning the project. 有人可以帮助我如何在不克隆项目的情况下推送代码。

Thanks, Arindam. 谢谢,阿林丹。

git remote add origin <bitbucket_repo_url>

现在,您的本地存储库已连接到Bitbucket存储库,而无需克隆Bitbucket存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM