1.创建工程交给版本库管理  vcs---import into version control---create Repository here
2.注意:选择的目录为当前项目的文件夹
3.add添加代码文件 commit 提交 revert 还原 还原历史 show history ---get
----------idea中配置远端仓库操作--------
1.vcs--git--push---定义远端仓库地址
2.vcs--git--push 推送到远端仓库
3.vcs--git--pull 拉取远端到本地
4.如果冲突合并后 推送
----------idea中配置分支-----------
1.创建分支 vcs---git ---branches---自定义分支名
2.切换分支 vcs---git---branches---选择分支 ---check out
3.合并操作 vcs---git---merge---选择分支名
4.冲突解决 先解决冲突后提交