美文网首页
安装配置Git

安装配置Git

作者: 郑伟vs | 来源:发表于2019-08-15 15:35 被阅读0次

a.配置git环境以及ssh key

  1)  $ git config --global user.name "zhengwei"

  2)  $ git config --global user.email "zhengwei@qq.com"

  3)  生成SSH key,输入命令ssh-keygen -t rsa,一路按回车既可

   4) 输入$ cat ~/.ssh/id_rsa.pub或者搜索.ssh目录,找到公匙id_rsa.pub文件打开复制内容,将内容粘贴到远程仓库的Add SSH Public Key中


b.ssh验证有问题,可以检查下图设置


c.tortoisegit文件夹图标不显示

可能有两个原因,系统默认15个图标,超限了;tortoisegit多个相同图标变量冲突,或者没有或者排在后面

1.增大图标个数:

注册表中找到 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer

新建一个“字符串值”名称为 “Max Cached Icons” 值是 “2000”

2.进注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers目录下,查看具体情况,有多组tortoisegit的图标就删掉一组,没有就按下面步骤添加或者重命名,弄完点击查看刷新,看下效果:

图标排前面:文件夹前一位用数字或者空格

没有对应图标新建一下:桌面右键--》TortoiseGit--》Settings--》Icon Overlays--》Status cache    点击选中Shell

然后将下面这些代码,保存为注册表文件(后缀为reg)

然后点击运行,重启电脑

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\1TortoiseNormal]

@="{C5994560-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\2TortoiseModified]

@="{C5994561-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\3TortoiseConflict]

@="{C5994562-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\4TortoiseLocked]

@="{C5994563-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\5TortoiseReadOnly]

@="{C5994564-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\6TortoiseDeleted]

@="{C5994565-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\7TortoiseAdded]

@="{C5994566-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\8TortoiseIgnored]

@="{C5994567-53D9-4125-87C9-F193FC689CB2}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\9TortoiseUnversioned]

@="{C5994568-53D9-4125-87C9-F193FC689CB2}"

d.Git密码输入错误后重新输入账号密码

相关文章

  • Git

    Git安装配置 Git安装 Git初始配置 跟踪文件 git config

  • GIt

    [TOC] 1. git安装与配置 1.1 git安装 搜索git进官网下载,安装即可! 1.2 git基本配置 ...

  • 2018-04-12 Git基础

    一、Git 安装配置 1.Git官网下载并完成安装 2.Git 配置 1).环境变量配置 安装成功后需要配置Git...

  • centos7.6 安装nginx ,nodejs 最新,mys

    一、 git的安装配置和ssh配置(可选安装,为了安全,设置git用户不能登录) (1)安装git (2)配置gi...

  • 软件安装

    Git Bash的安装与配置 Node.js的安装与配置 Git 的安装与配置 VSCode的安装和配置 错误言论...

  • Git 安装

    安装git mac安装git 配置Git 配置Git的用户名跟邮箱, 下面的命令 表示配置home目录下的设置 配...

  • GIT配置使用

    一、安装配置git 1、安装git,安装过程这里不在熬述。2、配置git 3、创建RSA证书打开git bash后...

  • Gitlab配置方法(liunx)

    Git配置 使用git配置方法如何安装git方法,请参考git安装办法,此处不再介绍,请参考以前安装方法 添加ss...

  • git学习笔记

    GIT学习笔记 1、git 安装 以及初始配置 安装sodu apt-get install git 配置$ gi...

  • git 学习(1) ---- git 安装与基础操作

    git 安装和配置 sudo apt-get install git安装成功后查看git的版本 配置git 的用户...

网友评论

      本文标题:安装配置Git

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