准备 gitlab上对应的git路径 运行命令行git init在Intelij中右键工程 Git->Repository->Remotes, 添加对应的git路径。在右键弹窗中,git->Commit Directory …