美文网首页
GIT 本地项目提交GITLAB步骤

GIT 本地项目提交GITLAB步骤

作者: M_ENG | 来源:发表于2019-07-23 19:54 被阅读0次

GIT 项目设置 master 分支unprotected

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

HELP.md
log/
LOG/
.DS_Store
.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步骤

    GIT 项目设置 master 分支unprotected 在设置 Project members 加入本地git...

  • 使用gitlab部署hexo

    序 环境配置 git hexo 操作步骤 在gitlab新建项目blog 本地新建hexo项目 将本地项目添加至远...

  • Git版本控制的使用

    本地创建Git仓库 本地Git仓库版本管理 GitLab远程创建提交本地仓库 需要先到GitLab添加自己的key...

  • git命令

    将本地新建的项目提交到远程仓库的步骤 初始化本地仓库git init 将本地内容添加至git本地暂存区中git a...

  • Github和Gitlab同一台电脑上的使用

    公司最近开始使用Git来进行版本控制,在配置好Gitlab之后写了几天代码,来提交本地Github项目时,发现提交...

  • git command

    git提交和上传步骤 1. 初始化本地git仓库在本地项目根目录下,git init该命令在目录下生成.git文件...

  • 本地项目关联远程Git仓库

    步骤 本地项目初始化 git 关联远程仓库 提交暂存 提交到分支 推送 移除 git 常见问题 如何配置邮箱和用户...

  • GIT简单使用

    本地配置全局git 创建本地仓库提交到git上 该针对本地没有存在的项目。 提交本地已存在的项目到git 针对本地...

  • “比特币”勒索病毒你中招了吗?项目还是提交远程仓库保险

    初识GitLab,Android项目提交远程仓库 由于初学,简单介绍下如何将本地项目提交到gitlab 需申请gi...

  • 代码管理

    代码管理 用到工具 1.git 2.GitLab // 3.Review Board// 操作步骤 使用git提交...

网友评论

      本文标题:GIT 本地项目提交GITLAB步骤

      本文链接:https://www.haomeiwen.com/subject/mftzlctx.html