将现有的Git存储库导入IntelliJ IDEA [英] Import an existing Git repository into IntelliJ IDEA

查看:95
本文介绍了将现有的Git存储库导入IntelliJ IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个本地Git存储库,其中包含我自己的分支,存储库和所有jazz,并且我想将此存储库添加到IntelliJ IDEA中,以便我可以对其进行管理,而不是从中创建该存储库的新副本在IDEA中.我该怎么办?

I have a local Git repository with my own branches, stashes and all that jazz, and I'd like to add this repository into IntelliJ IDEA, so that I can manage it, instead of creating a new copy of the repository from within IDEA. How do I do that?

谢谢!

推荐答案

您实际上可以使用现有的存储库.只需进入打开并打开您想成为其根目录.然后选择git repo目录,转到VCS菜单,然后选择启用版本控制集成.

You can actually use an existing repo. Just go to Open and open the directory that you want to be your root. Then select the git repo directory, go to the VCS menu, and select Enable Version Control Integration.

仅此而已.那在Mac上是如此容易.不确定其他平台上的流程是否完全相同.

That's all it took me. That was how easy it was on a Mac. Not sure if the flow is exactly the same on other platforms.

这篇关于将现有的Git存储库导入IntelliJ IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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