win7下安装sourcetree

来源:互联网 发布:金十数据解读 编辑:程序博客网 时间:2024/06/10 11:19
1.安装git,百度搜索就行
2.安装sourcetree 自行找链接
3.在git bash 下生成客户端 ssh-keygen -t rsa
4.然后将生成的C:\Users\jiangtong\.ssh\id_rsa.pub 文件上传到服务器keydir目录(交给git管理人员就行)
5.确保sourcetree ,工具-选项,弹出选项卡第三个git选项,使用系统git


6.确保source tree 工具-选项,的一般选项卡ssh客户端配置使用openssh


7.配置完成,现在可以clone (5,6项必须配置,要不然会source会报“这是一个无效的源路径”)



常见问题
提交的时候出现
git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\AppData\Local\Temp\yo1s42oy.fz2

*** Please tell me who you are.
原因:你没有设置邮箱
 git config --global user.email "you@example.com"
 
 git config --global user.name "Your Name"
设置一下就行了 
0 0
原创粉丝点击