Gitlab环境搭建及项目开发Git命令

Posted 魏晓蕾

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gitlab环境搭建及项目开发Git命令相关的知识,希望对你有一定的参考价值。

1、Gitlab环境搭建

2、项目开发Git命令

K0051769@K0051769 MINGW64 /d/ibpms (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   gradle/wrapper/gradle-wrapper.jar
        new file:   gradle/wrapper/gradle-wrapper.properties

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   gradlew
        modified:   gradlew.bat

K0051769@K0051769 MINGW64 /d/ibpms (master)
$ git checkout .
Updated 2 paths from the index

K0051769@K0051769 MINGW64 /d/ibpms (master)
$ git checkout develop
Switched to a new branch 'develop'
A       gradle/wrapper/gradle-wrapper.jar
A       gradle/wrapper/gradle-wrapper.properties
Branch 'develop' set up to track remote branch 'develop' from 'origin'.

K0051769@K0051769 MINGW64 /d/ibpms (develop)
$ git pull
Authorized uses only. All activity may be monitored and reported.
remote: Enumerating objects: 29, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 29 (delta 6), reused 29 (delta 6), pack-reused 0
Unpacking objects: 100% (29/29), 9.08 KiB | 88.00 KiB/s, done.
From gitlab.htzq.htsc.com.cn:opstech/ibpms
   5ffcea39b..d143fa89f  K1181684   -> origin/K1181684
 * [new branch]          R-PT-S-TAIE-2.9.4-patch01 -> origin/R-PT-S-TAIE-2.9.4-patch01
 * [new branch]          TAIE-9727  -> origin/TAIE-9727
 * [new branch]          TAIE-9825  -> origin/TAIE-9825
Already up to date.

K0051769@K0051769 MINGW64 /d/ibpms (develop)
$ git pull
Authorized uses only. All activity may be monitored and reported.
From gitlab.htzq.htsc.com.cn:opstech/ibpms
 * [new branch]          TAIE-10240 -> origin/TAIE-10240
Already up to date.

K0051769@K0051769 MINGW64 /d/ibpms (develop)
$ git checkout TAIE-10240
Switched to a new branch 'TAIE-10240'
A       gradle/wrapper/gradle-wrapper.jar
A       gradle/wrapper/gradle-wrapper.properties
Branch 'TAIE-10240' set up to track remote branch 'TAIE-10240' from 'origin'.

K0051769@K0051769 MINGW64 /d/ibpms (TAIE-10240)
$


以上是关于Gitlab环境搭建及项目开发Git命令的主要内容,如果未能解决你的问题,请参考以下文章

Gitlab的安装搭建

GIT系列——centos8环境下搭建GitLab代码仓库管理服务

centos 7部署并汉化Gitlab及基础操作

CentOS 7.6 搭建Gitlab教程

Ubuntu零基础教学-Ubuntu20.04安装Git及使用,并上传代码至gitlab服务器 | 超级详细,建议收藏!

Ubuntu零基础教学-Ubuntu20.04安装Git及使用,并上传代码至gitlab服务器 | 超级详细,建议收藏!