通过idea将本地代码 推送到码云
准备
- 本地安装GIT
- 拥有idea
- 拥有码云或者其他管理的账号
- 你要用推送的东西
开始
- 点击VCS 选择Create Git Repository
- 选择自己的项目
然后你的代码文件会变红
-
提交需要提交的代码到本地仓库 -建议如果有target可以先clean掉 然后提交 防止点错
-
或者使用ingore插件 排除
-
.gitignore 配置如下(装了.ignore插件):
-
### Example user template template ### Example user template # IntelliJ project files .idea *.iml out gen target
添加代码到git
提交到本地仓库
在git服务器上创建仓库 过程略
- 复制https地址:https://gitee.com/x1376646336/xxwz-project.git
然后搞定
注意:本文归作者所有,未经作者允许,不得转载