2018版本IDEA:File->Version Control-> 点击"+" -> 添加你的项目。 2020版本IDEA:File -> settngs -> Version Control -> Directory Mappings -> 点击"+" -> 添加你的项目。