Git

创建日期:2024-06-21
更新日期:2024-12-05

GitHub:GitHub

GitLab:The most-comprehensive AI-powered DevSecOps platform ~| GitLab

Gitee:工作台 - Gitee.com

GitCode:项目 · 探索 · GitCode

常见问题:

1、如何使用git远程登录Linux服务器。

ssh root@192.168.23.116

输入密码即可。

liteng@DESKTOP-KI4KGGB MINGW64 ~/Desktop

$ ssh root@192.168.23.116

The authenticity of host '192.168.23.116 (192.168.23.116)' can't be established.

ED25519 key fingerprint is SHA256:Y74Ko4Jlbo6TxYI3CTz0b6x4wLoC2P+QyOnwjjNNBR8.

This key is not known by any other names

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '192.168.23.116' (ED25519) to the list of known hosts.

root@192.168.23.116's password:

Last login: Thu Apr 28 11:05:26 2022 from 192.168.23.51

[root@ies ~]#

2、可以打开gitee网站,但是无法使用git更新或提交代码。

PS C:\WINDOWS\system32> ping gitee.com

正在 Ping gitee.com-31ba39d0fd3.baiduads.com [180.76.198.225] 具有 32 字节的数据:
来自 180.76.198.225 的回复: 字节=32 时间=18ms TTL=52
来自 180.76.198.225 的回复: 字节=32 时间=17ms TTL=52
来自 180.76.198.225 的回复: 字节=32 时间=17ms TTL=52
来自 180.76.198.225 的回复: 字节=32 时间=18ms TTL=52

180.76.198.225 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 17ms,最长 = 18ms,平均 = 17ms
PS C:\WINDOWS\system32> ssh -vT git@gitee.com
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\liteng/.ssh/config
debug1: Connecting to gitee.com [180.76.198.225] port 22.
debug1: connect to address 180.76.198.225 port 22: Connection timed out
debug1: Connecting to gitee.com [180.76.198.77] port 22.
debug1: connect to address 180.76.198.77 port 22: Connection timed out
ssh: connect to host gitee.com port 22: Connection timed out

ssh是连接的gitee.com的22端口。