1、设置git==》在idea的setting中搜索git
2、引入版本控制
导航栏中VCS--》import into version control --》create git repository