1、下载安装包

我这边下载好了直接安装
git下载地址:
链接:https://pan.baidu.com/s/1nNyb4n-7ik1km5tYjiTlmA
提取码:4yj2
sourcetree下载地址:
链接:https://pan.baidu.com/s/1n6M_nJBDm-A_fEZ52utJLg
提取码:c4tr
git安装-----参考链接:https://www.cnblogs.com/wj-1314/p/7993819.html
2、Git安装
先安装git,按照提示即可
安装完成后 打开cmd 输入git --version

这样说明就安装成功了
3 sourcetree安装
安装sourceTree
参考链接:https://blog.csdn.net/ykx_1448488568/article/details/84824395
注册bitbucket账号

继续

继续下一步

这一步会有点慢

继续下一步

点击:“否”

到这一步了 就安装完成了
4、配置gitLab
1、鼠标右键 在桌面上点击,选择 Git Bash Here
打开如图
如果配置过.ssh 输入cd ~/.ssh

copy出来备用
如果没有.SSH 怎么办 往下看
创建目录
mkdir ~/.ssh
配置name和email
git config --global user.name "you name"
git config --global user.email "youEmail@qq.com"
生成key
ssh-keygen -t rsa -C "youEmail@qq.com"
然后 一直按回车健 就好了
接下来 打开你自己的gitLab

5、最后一步
打开sourceTree

copy一个项目地址

搞定了
我们看看效果咯

搞定!
更多sourceTree 操作 下期解锁。
网友评论