赞
踩
目录
编辑 7)如果代码没有问题,可以点击 Merge pull reque 合并代码。编辑
例如小红修改了代码,记为版本1.1.1,小蓝也修改的代码,记为1.1.2,然后将1.1.1与1.1.2版本的代码进行合并,记为1.2。
在 Git Bash 终端里输入 git --version 查看 git 版本,如图所示,说明 Git 安装成功。
全局范围的签名设置:Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git config --global user.name LayneLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git config --global user.email Layne@atguigu.comLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ cat ~/.gitconfig[user]name = Layneemail = Layne@atguigu.com
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720$ git initInitialized empty Git repository in D:/Git-Space/SH0720/.git/Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ ll -atotal 4drwxr-xr-x 1 Layne 197609 0 11 月 25 14:07 . /drwxr-xr-x 1 Layne 197609 0 11 月 25 14:07 .. /drwxr-xr-x 1 Layne 197609 0 11 月 25 14:07 .git / ( .git 初始化的效果,生成 git )
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masterNo commits yetnothing to commit (create/copy files and use "git add" to track)
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ vim hello.txthello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masterNo commits yetUntracked files:(use "git add <file>..." to include in what will be committed)hello.txtnothing added to commit but untracked files present (use "git add"to track)
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git add hello.txtwarning: LF will be replaced by CRLF in hello.txt.The file will have its original line endings in your workingdirectory.
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masterNo commits yetChanges to be committed:(use "git rm --cached <file>..." to unstage)new file: hello.txt
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git commit -m "my first commit" hello.txtwarning: LF will be replaced by CRLF in hello.txt.The file will have its original line endings in your workingdirectory.[master (root-commit) 86366fa] my first commit1 file changed, 16 insertions(+)create mode 100644 hello.txt
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masternothing to commit, working tree clean
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ vim hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masterChanges not staged for commit:(use "git add <file>..." to update what will be committed)(use "git checkout -- <file>..." to discard changes in workingdirectory)modified: hello.txtno changes added to commit (use "git add" and/or "git commit -a")
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git add hello.txtwarning: LF will be replaced by CRLF in hello.txt.The file will have its original line endings in your workingdirectory.
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git statusOn branch masterChanges to be committed:(use "git reset HEAD <file>..." to unstage)modified: hello.txt
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git reflog087a1a7 ( HEAD -> master ) HEAD@{0}: commit: my third commitca8ded6 HEAD@{1}: commit: my second commit86366fa HEAD@{2}: commit (initial): my first commit
-- 首先查看当前的历史记录,可以看到当前是在 087a1a7 这个版本Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git reflog087a1a7 (HEAD -> master) HEAD@{0}: commit: my third commitca8ded6 HEAD@{1}: commit: my second commit86366fa HEAD@{2}: commit (initial): my first commit-- 切换到 86366fa 版本,也就是我们第一次提交的版本Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git reset --hard 86366faHEAD is now at 86366fa my first commit-- 切换完毕之后再查看历史记录,当前成功切换到了 86366fa 版本Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git reflog86366fa (HEAD -> master) HEAD@{0}: reset: moving to 86366fa087a1a7 HEAD@{1}: commit: my third commitca8ded6 HEAD@{2}: commit: my second commit86366fa (HEAD -> master) HEAD@{3}: commit (initial): my first commit-- 然后查看文件 hello.txt ,发现文件内容已经变化$ cat hello.txthello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git branch -v* master 087a1a7 my third commit ( * 代表当前所在的分区)
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git branch hot-fixLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git branch -vhot-fix 087a1a7 my third commit (刚创建的新的分支,并将主分支 master的内容复制了一份)* master 087a1a7 my third commit
-- 在 maste 分支上做修改Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ vim hello.txt-- 添加暂存区Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git add hello.txt-- 提交本地库Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git commit -m "my forth commit" hello.txt[master f363b4c] my forth commit1 file changed, 1 insertion(+), 1 deletion(-)-- 查看分支Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git branch -vhot-fix 087a1a7 my third commit ( hot-fix 分支并未做任何改变)* master f363b4c my forth commit (当前 master 分支已更新为最新一次提交的版本)-- 查看 master 分支上的文件内容Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 3333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! master testhello git! hello atguigu!
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git checkout hot-fixSwitched to branch 'hot-fix'-- 发现当先分支已由 master 改为 hot-fixLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (hot-fix)$-- 查看 hot-fix 分支上的文件内容发现与 master 分支上的内容不同Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (hot-fix)$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 3333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!-- 在 hot-fix 分支上做修改Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (hot-fix)$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 3333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! hot-fix test-- 添加暂存区Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (hot-fix)$ git add hello.txt-- 提交本地库Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (hot-fix)$ git commit -m "hot-fix commit" hello.txt
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 ( master )$ git merge hot-fixAuto-merging hello.txtCONFLICT (content): Merge conflict in hello.txtAutomatic merge failed; fix conflicts and then commit the result.
冲突产生的表现:后面状态为 MERGINGLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 ( master|MERGING )$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 3333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!<<<<<<< HEADhello git! hello atguigu! master testhello git! hello atguigu!=======hello git! hello atguigu!hello git! hello atguigu! hot-fix test>>>>>>> hot-fix
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 ( master|MERGING )$ git statusOn branch masterYou have unmerged paths.(fix conflicts and run "git commit")(use "git merge --abort" to abort the merge)Unmerged paths:(use "git add <file>..." to mark resolution)both modified: hello.txtno changes added to commit (use "git add" and/or "git commit -a")
hello git! hello atguigu! 2222222222222hello git! hello atguigu! 3333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! master testhello git! hello atguigu! hot-fix test
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master|MERGING)$ git add hello.txt
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master|MERGING)$ git commit -m "merge hot-fix"[master 69ff88d] merge hot-fix-- 发现后面 MERGING 消失,变为正常Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git remote -vLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git remote add ori https://github.com/atguiguyueyue/git-shTest.gitLayne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git remote -vori https://github.com/atguiguyueyue/git-shTest.git (fetch)ori https://github.com/atguiguyueyue/git-shTest.git (push)
https://github.com/atguiguyueyue/git-shTest.git
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git push ori masterLogon failed, use ctrl+c to cancel basic credential prompt.Username for 'https://github.com': atguiguyueyueCounting objects: 3, done.Delta compression using up to 12 threads.Compressing objects: 100% (2/2), done.Writing objects: 100% (3/3), 276 bytes | 276.00 KiB/s, done.Total 3 (delta 0), reused 0 (delta 0)To https://github.com/atguiguyueyue/git-shTest.git* [new branch] master -> master
Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong$ git clone https://github.com/atguiguyueyue/git-shTest.gitCloning into 'git-shTest'...remote: Enumerating objects: 3, done.remote: Counting objects: 100% (3/3), done.remote: Compressing objects: 100% (2/2), done.remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0Unpacking objects: 100% (3/3), done.
-- 创建远程仓库别名Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ git remote -vorigin https://github.com/atguiguyueyue/git-shTest.git (fetch)origin https://github.com/atguiguyueyue/git-shTest.git (push)
2)填入想要合作的人
4)在 atguigulinghuchong 这个账号中的地址栏复制收到邀请的链接,点击接受邀请。
5)成功之后可以在 atguigulinghuchong 这个账号上看到 git-Test 的远程仓库。
6)令狐冲可以修改内容并 push 到远程仓库。
-- 编辑 clone 下来的文件Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ vim hello.txtLayne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 33333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! 我是最帅的,比岳不群还帅hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! master testhello git! hello atguigu! hot-fix test-- 将编辑好的文件添加到暂存区Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ git add hello.txt-- 将暂存区的文件上传到本地库Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ git commit -m "lhc commit" hello.txt[master 5dabe6b] lhc commit1 file changed, 1 insertion(+), 1 deletion(-)-- 将本地库的内容 push 到远程仓库Layne@LAPTOP-Layne MINGW64 /d/Git-Space/pro-linghuchong/git-shTest(master)$ git push origin masterLogon failed, use ctrl+c to cancel basic credential prompt.Username for 'https://github.com': atguigulinghuchongCounting objects: 3, done.Delta compression using up to 12 threads.Compressing objects: 100% (2/2), done.Writing objects: 100% (3/3), 309 bytes | 309.00 KiB/s, done.Total 3 (delta 1), reused 0 (delta 0)remote: Resolving deltas: 100% (1/1), completed with 1 local object.To https://github.com/atguiguyueyue/git-shTest.git7cb4d02..5dabe6b master -> master
-- 将远程仓库对于分支最新内容拉下来后与当前本地分支直接合并Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ git pull ori masterremote: Enumerating objects: 5, done.remote: Counting objects: 100% (5/5), done.remote: Compressing objects: 100% (1/1), done.remote: Total 3 (delta 1), reused 3 (delta 1), pack-reused 0Unpacking objects: 100% (3/3), done.From https://github.com/atguiguyueyue/git-shTest* branch master -> FETCH_HEAD7cb4d02..5dabe6b master -> ori/masterUpdating 7cb4d02..5dabe6bFast-forwardhello.txt | 2 + -1 file changed, 1 insertion(+), 1 deletion(-)Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ cat hello.txthello git! hello atguigu! 2222222222222hello git! hello atguigu! 33333333333333hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! 我是最帅的,比岳不群还帅hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu!hello git! hello atguigu! master testhello git! hello atguigu! hot-fix test
3)东方不败就可以在线编辑叉取过来的文件。
4)编辑完毕后,填写描述信息并点击左下角绿色按钮提交。
5)接下来点击上方的 Pull 请求,并创建一个新的请求。
6)回到岳岳 GitHub 账号可以看到有一个 Pull request 请求。
-- 进入当前用户的家目录Layne@LAPTOP-Layne MINGW64 /d/Git-Space/SH0720 (master)$ cd-- 删除 .ssh 目录Layne@LAPTOP-Layne MINGW64 ~$ rm -rvf .sshremoved '.ssh/known_hosts'
removed directory '.ssh'-- 运行命令生成 .ssh 秘钥目录 [ 注意:这里 -C 这个参数是大写的 C ]Layne@LAPTOP-Layne MINGW64 ~$ ssh-keygen -t rsa -C atguiguyueyue@aliyun.comGenerating public/private rsa key pair.Enter file in which to save the key (/c/Users/Layne/.ssh/id_rsa):Created directory '/c/Users/Layne/.ssh'.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /c/Users/Layne/.ssh/id_rsa.Your public key has been saved in /c/Users/Layne/.ssh/id_rsa.pub.The key fingerprint is:SHA256:7CPfRLITKcYDhaqpEDeok7Atvwh2reRmpxxOC6dkY44atguiguyueyue@aliyun.comThe key's randomart image is:+---[RSA 2048]----+| .. || .. || . .. ||+ + o . . ||oO . = S . ||X . .. + = ||+@ * .. = . ||X.&o+. o = ||Eo+Oo . . |+----[SHA256]-----+-- 进入 .ssh 目录查看文件列表Layne@LAPTOP-Layne MINGW64 ~$ cd .sshLayne@LAPTOP-Layne MINGW64 ~/.ssh$ ll -atotal 21drwxr-xr-x 1 Layne 197609 0 11 月 25 19:27 . /drwxr-xr-x 1 Layne 197609 0 11 月 25 19:27 .. /-rw-r--r-- 1 Layne 197609 1679 11 月 25 19:27 id_rsa-rw-r--r-- 1 Layne 197609 406 11 月 25 19:27 id_rsa.pub-- 查看 id_rsa.pub 文件内容Layne@LAPTOP-Layne MINGW64 ~/.ssh$ cat id_rsa.pubssh-rsaAAAAB3NzaC1yc2EAAAADAQABAAABAQDRXRsk9Ohtg1AXLltsuNRAGBsx3ypE1O1Rkdzpml1woa6y6G62lZri3XtCH0F7GQvnMvQtPISJFXXWo+jFHZmqYQa/6kOIMv2sszcoj2QtwllGXTPn/4T2h/cHjSHfc+ks8OYP7OWOOefpOCbYY/7DWYrl89k7nQlfd+A1FV/vQmcsa1LP5ihqjpjms2CoUUen8kZHbjwHBAHQHWRE+Vc371MG/dwINvCi8n7ibI86o2k0dW0+8SL+svPV/Y0G9m+RAqgec8b9U6DcSSAMH5uq4UWfnAcUNagb/aJQLytrH0pLa8nMv3XdSGNNoAGBFeW2+K81XrmkP27FrLI6lDef atguiguyueyue@aliyun.com
复制 id_rsa.pub 文件内容,登录 GitHub,点击用户头像→Settings→SSH and GPG keys
接下来再往远程仓库 push 东西的时候使用 SSH 连接就不需要登录了。
2)IDEA 特定文件
3)Maven 工程的 target 目录
# Compiled class file*.class# Log file*.log# BlueJ files*.ctxt# Mobile Tools for Java (J2ME).mtj.tmp/# Package Files #*.jar*.war*.nar*.ear*.zip*.tar.gz*.rar# virtual machine crash logs, seehttp://www.java.com/en/download/help/error_hotspot.xmlhs_err_pid*.classpath.project.settingstarget.idea*.iml
[user]name = Layneemail = Layne@atguigu.com[core]excludesfile = C:/Users/asus/git.ignore注意:这里要使用“正斜线( / )”,不要使用“反斜线( \ )”
右键选择要切换的版本,然后在菜单里点击 Checkout Revision。
在弹出的 Git Branches 框里,点击 New Branch 按钮。
填写分支名称,创建 hot-fix 分支。
然后在 IDEA 窗口的右下角看到了 master,说明 master 分支切换成功。
我们现在站在 master 分支上合并 hot-fix 分支,就会发生代码冲突。
点击 Conflicts 框里的 Merge 按钮,进行手动合并代码。
手动合并完代码以后,点击右下角的 Apply 按钮。
代码冲突解决,自动提交本地库。
如果出现 401 等情况连接不上的,是因为网络原因,可以使用以下方式连接
然后去 GitHub 账户上设置 token。
Idea 链接码云和链接 GitHub 几乎一样,安装成功后,重启 Idea。
Idea 重启以后在 Version Control 设置里面看到 Gitee,说明码云插件安装成功。
然后在码云插件里面添加码云帐号,我们就可以用 Idea 连接码云了。
自定义远程库链接。
给远程库链接定义个 name,然后再 URL 里面填入码云远程库的 HTTPS 链接即可。码
[root@gitlab-server module]# vim gitlab-install.shsudo rpm -ivh /opt/module/gitlab-ce-13.10.2-ce.0.el7.x86_64.rpmsudo yum install -y curl policycoreutils-python openssh-server cronie
sudo lokkit -s http -s sshsudo yum install -y postfixsudo service postfix startsudo chkconfig postfix oncurl https://packages.gitlab.com/install/repositories/gitlab/gitlabce/script.rpm.sh | sudo bashsudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlabce给脚本增加执行权限[root@gitlab-server module]# chmod +x gitlab-install.sh[root@gitlab-server module]# ll总用量 403104-rw-r--r--. 1 root root 412774002 4 月 7 15:47 gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm-rwxr-xr-x. 1 root root 416 4 月 7 15:49 gitlab-install.sh然后执行该脚本,开始安装 gitlab-ce 。注意一定要保证服务器可以上网。[root@gitlab-server module]# ./gitlab-install.sh警告: /opt/module/gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm: 头 V4RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY准备中 ... #################################[100%]正在升级 / 安装 ...1:gitlab-ce-13.10.2-ce.0.el7################################# [100%]。 。 。 。 。 。
[root@gitlab-server module]# gitlab-ctl reconfigure。 。 。 。 。 。Running handlers:Running handlers completeChef Client finished, 425/608 resources updated in 03 minutes 08secondsgitlab Reconfigured!
[root@gitlab-server module]# gitlab-ctl startok: run: alertmanager: (pid 6812) 134sok: run: gitaly: (pid 6740) 135sok: run: gitlab-monitor: (pid 6765) 135sok: run: gitlab-workhorse: (pid 6722) 136sok: run: logrotate: (pid 5994) 197sok: run: nginx: (pid 5930) 203sok: run: node-exporter: (pid 6234) 185sok: run: postgres-exporter: (pid 6834) 133sok: run: postgresql: (pid 5456) 257sok: run: prometheus: (pid 6777) 134sok: run: redis: (pid 5327) 263sok: run: redis-exporter: (pid 6391) 173sok: run: sidekiq: (pid 5797) 215sok: run: unicorn: (pid 5728) 221s
GitLab 登录成功。
➢ 2)设置 GitLab 插件
➢ 3)push 本地代码到 GitLab 远程库
自定义远程连接
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。