在 phpstorm 中启用与配置:vcs > enable version control integration 选择 git;或 settings > version control > git,设置 path to git executable(常见为 /usr/bin/git),并填写用户名与邮箱。
常用操作:vcs > git > remotes 配置远程;右键项目或 vcs 菜单执行 push/pull;需要时可在 vcs > checkout from version control > git 克隆仓库。