1.在idea的菜单项选择 VCS -> Import into Version Control -> Create Git Repository 2.ADD文件到git 3.在gitlib创建新项目 4.push项目