git 安装教程

2022-11-17,,

昆,简单说下安装教程
1,安装Git
2,安装TortoiseGit
3,打开第一步安装的git工具GIT BASH

设置Git的user name和email:

git config --global user.name "jami"
git config --global user.email "jami@gmail.com"

生存密钥:
ssh-keygen -t rsa -C "jami@gmail.com"
按3个回车,密码为空。
    Your identification has been saved in /home/tekkub/.ssh/id_rsa.
    Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
    The key fingerprint is:
    ………………
最后得到了两个文件:id_rsa和id_rsa.pub(.pub文件需要发给我加入版本库验证文件里面去)
4,打开第二步安装的puttygen工具

点击file导入第三步生成的私钥文件id_rsa
5,保存为ppk格式的私钥(TortoiseGit用到此私钥)

最后找一个文件夹,右键GIT克隆迁出代码,git地址为(git@git.sdongpo.com:/home/git/data/qudengshan_manage.git)
点击确定,完成。

git 安装教程的相关教程结束。

《git 安装教程.doc》

下载本文的Word格式文档,以方便收藏与打印。