GIT 本地项目提交GITLAB步骤

在设置 Project members 加入本地git账户

HELP.md
log/
LOG/
.DS_Store
.vscode
.mvn
mvnw
mvnw.cmd
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/

### VS Code ###
.vscode/

按顺序执行命令

#项目目录
cd /xxx/xxx

touch .gitignore
//WIN10  
//copy nul yourfile.name

##添加 log ,mvnw,mvnw.cmd .....需要忽略的文件

vim .gitignore

git init

git remote add origin http://xx.xx.xxx.xx/xx/xxxxx.git

git checkout -b developer

git add .

git commit -m "project init"

#检查远程git路径是否正确
git remote -v

##指向master分支
git pull --rebase origin developer

git push -u origin developer

你可能感兴趣的:(GIT 本地项目提交GITLAB步骤)