美文网首页
配置git |sourcetree |gitlab

配置git |sourcetree |gitlab

作者: Helen_Cat | 来源:发表于2018-06-16 11:09 被阅读14次

1.确认自己电脑是否安装 git 客户端 没有就要去下载 安装

2 首先下载 Sourcetree 并安装 到本地

https://www.sourcetreeapp.com

sourcetree需要注册登录,但是sourcetree注册服务器比较卡顿,如果注册不了 打不开

windows 和mac 都可以尝试 跳过 注册

SoureTree安装的过程中,按这个链接里面的方法https://www.jianshu.com/p/3478e2a214a1可以跳过注册

3. 登录我们的gitlab 服务器 先注册后再登录,

Configuring the external URL for GitLab
In order for GitLab to display correct repository clone links to your users it needs to know the URL under which it is reached by your users, e.g. http://gitlab.example.com. Add or edit the following line in /etc/gitlab/gitlab.rb:

external_url "http://gitlab.example.com"

Run sudo gitlab-ctl reconfigure for the change to take effect.

3.1. 获取自己电脑本机 的 ssh 公钥 ,然后将公钥内容粘贴到 gitlab 服务器 ssh-keys中

4. 选择 项目 进行克隆到本地

比如

git@http://cdhnode3:muller/awesome_etl.git

在Sourcetree 里操作 远程仓库

也可以 在命令行里操作

cd somerepodir

git clone git@10.111.32.19:muller/awesome_etl.git

git 的相关 文章

https://wenku.baidu.com/view/5c6f2266ec3a87c24128c443.html?from=search

https://www.zybuluo.com/yangfch3/note/159758

git 的相关 图介绍


Git-conflict.png GIT-interview-Question-and-Answers.png git.png etl_ml.png image.png

相关文章

网友评论

      本文标题:配置git |sourcetree |gitlab

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