Loading

git 初始化

环境初始化

# 创建git仓库
git init 

# 环境初始化
git config --global user.name {name}
git config --global user.email {email}

设置代理

#http || https
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

#sock5代理
git config --global http.proxy socks5 127.0.0.1:7891
git config --global https.proxy socks5 127.0.0.1:7891

#查看
git config --global --get http.proxy
git config --global --get https.proxy

#取消
git config --global --unset http.proxy
git config --global --unset https.proxy

ssh连接

github ssh settings : webcite

配置过程

# generation a new ssh key
ssh-keygen -t ed25519 -C "your_email@example.com"

复制 xxx.pub 公钥文件的内容到 github setting 页面 保存 ssh key。

test

ssh -T git@github.com
posted @   big_shark  阅读(5)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示