1.在github上面创建一个项目
2.将项目克隆到本地
3.新建maven项目
4.编辑.gitignore
5.初次提交
F:git_codegithub_test>git add . warning: LF will be replaced by CRLF in pom.xml. The file will have its original line endings in your working directory F:git_codegithub_test>git status On branch main Your branch is up to date with 'origin/main'. Changes to be committed: (use "git restore --staged <file>..." to unstage) modified: .gitignore new file: pom.xml F:git_codegithub_test>git commit -m "第一次初始化" [main 9c77134] 第一次初始化 2 files changed, 13 insertions(+) create mode 100644 pom.xml F:git_codegithub_test>git push Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 8 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 643 bytes | 643.00 KiB/s, done. Total 4 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/Eric-chenjy/github_test.git 3cd1cc9..9c77134 main -> main F:git_codegithub_test>