git 在 AndroidStudio 中克隆一个 bitbucket 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41788758/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 12:34:24  来源:igfitidea点击:

cloning a bitbucket project in AndroidStudio

gitandroid-studioversion-controlbitbucket

提问by mcfly soft

I try to clone a project from Bitbucket into Android Studio. The project was originally published from Eclipse.

我尝试将一个项目从 Bitbucket 克隆到 Android Studio。该项目最初是从 Eclipse 发布的。

But I get the error:

但我收到错误:

Clone failed. Failed to start Git process.

克隆失败。无法启动 Git 进程。

What I have done so far:

到目前为止我做了什么:

  1. Installed a Bitbucket plugin: https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloads(http://www.goprogramming.space/connecting-android-studio-project-with-bitbucket/)

  2. Then VCS -> checkout from Version Control -> Bitbucket

  1. 安装了一个 Bitbucket 插件:https: //bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/downloadshttp://www.goprogramming.space/connecting-android-studio-project-with-bitbucket/

  2. 然后 VCS -> 从版本控制检出 -> Bitbucket

I get a login screen. I logged into Bitbucket and I could see the list of my projects (WOW!) Then selecting a project and press ok. -> Clone failed. Failed to start Git process.

我得到一个登录屏幕。我登录到 Bitbucket,我可以看到我的项目列表(哇!)然后选择一个项目并按确定。->克隆失败。无法启动 Git 进程。

Any help on how I can clone a Bitbucket repository?

关于如何克隆 Bitbucket 存储库的任何帮助?

回答by Marina Liu

The 3rd party for bitbucket plugin on android studio seems not work. You can try below steps to clone a bitbucket repo:

android studio 上的 bitbucket 插件的第 3 方似乎不起作用。您可以尝试以下步骤来克隆一个 bitbucket 存储库:

VCS -> Git -> clone -> paste bitbucket URL repo -> clone.

VCS -> Git -> 克隆 -> 粘贴 bitbucket URL repo -> 克隆。

It can clone successfully.

它可以成功克隆。

回答by Smit_02

Go to repository in BitBucket to the top right there is button called CloneClick on it copy the link

转到 BitBucket 中的存储库,右上角有一个名为Clone 的按钮 单击它复制链接

Now go to android studio Click >VCS>CheckOutFromVersionControl>GitNow paste the link remove the git clone at the start of the linkClick Okay

现在转到Android Studio中点击> VCS> CheckOutFromVersionControl>的Git现在粘贴链接删除混帐克隆在开始链接点击好

回答by global_warming

For using BitBucket plugin you need to install git on your system too.

要使用 BitBucket 插件,您还需要在系统上安装 git。

Install git on Linux using following command in terminal:

在终端中使用以下命令在 Linux 上安装 git:

sudo apt-get install git

sudo apt-get 安装 git

Windows & Mac OS X:

Windows 和 Mac OS X:

git tutorial | Install git

git教程| 安装 git

回答by Kona Suresh

For cloning project from BitBucket we should have git software in our system.

对于从 BitBucket 克隆项目,我们的系统中应该有 git 软件。

Then Go to your destination folder --> right click and select "Git Bash Here"

然后转到您的目标文件夹-> 右键单击​​并选择“Git Bash Here”

It will open the command prompt --> here you can type as "git clone your source path".

它将打开命令提示符 --> 在这里您可以键入“git clone your source path”。

The above steps are worked for me.

以上步骤对我有用。