1. clone代码
-
先建一个空项目
-
在idea里用命令clone代码:
-
配置本地maven库
-
如图导入已克隆下来的项目
-
2. 提交代码步骤
-
1.cd到工程下的项目名
-
git pull (从代码库拉取最新代码)
-
git add .(将修改操作的文件和未跟踪新添加的文件添加到git系统的暂存区)
-
git commit -m ‘描述’
-
git push
其他git常用操作见:https://www.runoob.com/git/git-basic-operations.html