git 如何断开intellij中项目的git?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34446530/
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
How to disconnect git for a project in intellij?
提问by K F
I'm new in swift to intellij from eclipse. In eclipse, there's just a button disconnect in popup menu selection "team" which can disconnect the project from the version control system like git or svn, and even can delete version control information like files in ".git" dir or ".svn" dir of the project. I can't find the counterpart button of intellij and don't know how to delete the git information. I deleted the ".git" directory of the project, but opened intellij again, it still show that the project is in git and can't be pushed to new git repo.
我是从 Eclipse 快速到 Intellij 的新手。在eclipse中,弹出菜单选择“team”中只有一个按钮断开连接,可以将项目与git或svn等版本控制系统断开连接,甚至可以删除“.git”目录或“.svn”中的文件等版本控制信息项目的目录。我找不到intellij的对应按钮,不知道如何删除git信息。我删除了项目的“.git”目录,但是再次打开intellij,仍然显示项目在git中,无法推送到新的git repo。