赞
踩
1、在gitee创建仓库,创建成功后生成远程仓库地址用于idea中配置远程仓库,见(6、配置远程仓库)
2、在idea打开项目创建本地git仓库,选择当前项目
3、提供一个.gitignore文件控制git忽略管理的文件
.git logs rebel.xml target/ !.mvn/wrapper/maven-wrapper.jar log.path_IS_UNDEFINED .DS_Store offline_user.md ### STS ### .apt_generated .classpath .factorypath .project .settings .springBeans ### IntelliJ IDEA ### .idea *.iws *.iml *.ipr ### NetBeans ### nbproject/private/ build/ nbbuild/ dist/ nbdist/ .nb-gradle/ generatorConfig.xml ### nacos ### third-party/nacos/derby.log third-party/nacos/data/ third-party/nacos/work/ file/
4、项目右键 -> Git -> add
5、commitandpush提交并推送到远程仓库
6、配置远程仓库
需要先输入gitee的用户名密码
用户名密码认证成功
推送成功
7、项目优化
切换新分支:idea右下角->左键->newbranch
将创建的新分支push到gitee
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。