1、创建demo库
2、复制地址
3、下载到本地
4、复制文件至demo文件夹下
5、设置忽略文件
编辑文件.gitignore
替换为:
# Created by .ignore support plugin (hsz.mobi)
/target/*
!.mvn/wrapper/maven-wrapper.jar
src/test/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
.mvn/
catalina.base_IS_UNDEFINED/### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
/build/
.DS_Store
*/.DS_Store
*.class
.idea/*
*.bak
target
target/*
.gradle/
.settings/
*.pyc
*.log
*.stats
*.apk
*.ap_
*.dex
gen/
local.properties
proguard/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
*.hmap
*.ipa
.metadata/
.metadata/*
*.log
pids
*.pid
*.seed
lib-cov
coverage
.grunt
.lock-wscript
build/Release
node_modules
.gitlab-ci.yml
.gitignore
BladeX-Boot.iml
target/
6、添加文件
git add .
7、提交
git commit -m '提交'
8、推送远端
git push origin master
检查收工收工