克隆远程仓库:选择 VCS → Get from VCS(或 File → New → Project from Version Control),填入仓库 URL(如 https://github.com/user/repo.git 或 git@github.com:user/repo.git),选择本地目录后 Clone。
初始化本地仓库:在项目中执行 VCS → Enable Version Control Integration,选择 Git;或在项目根目录右键 Git → Initialize Repository。