跳转至

Git

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

git --version

Text Only
1
2
3
eric@DELL MINGW64 ~
$ git --version
git version 2.47.1.windows.1
PowerShell
1
2
3
4
PS C:\Users\eric> git --version
git version 2.47.1.windows.1
PS C:\Users\eric> git --version
git version 2.48.1.windows.1

ssh-keygen

Text Only
1
ssh-keygen -t rsa -C 'xxx@163.com'

Ubuntu key directory example

Text Only
1
2
3
4
Your identification has been saved in /home/eric/.ssh/id_rsa
Your public key has been saved in /home/eric/.ssh/id_rsa.pub
eric@fantasy:~/.ssh$ ls
authorized_keys  id_rsa  id_rsa.pub

显示gitconfig内容

Text Only
1
git config --list

failed to connect to github 443 error

Text Only
1

取消代理

Text Only
1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

ipaddress

Text Only
1
https://www.ipaddress.com/

获取github的global.ssl.fastly地址

Text Only
1
2
3
4
5
访问:http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo 获取cdn和ip域名
github.global.ssl  IN  A  151.101.1.194
github.global.ssl  IN  A  151.101.65.194
github.global.ssl  IN  A  151.101.129.194
github.global.ssl  IN  A  151.101.193.194

获取github的地址

Text Only
1
  IN  A  140.82.113.3

windows git bash

Text Only
1
2
eric@DELL MINGW64 ~
$

pwd

Text Only
1
2
$ pwd
/c/Users/eric