前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Git 优化三连击

Git 优化三连击

作者头像
XRSec
发布2022-03-02 08:44:14
3680
发布2022-03-02 08:44:14
举报
文章被收录于专栏:XRSec.Blog

Git 优化三连击

本文不做过多讲解,不懂的内容请留言

Git.HTTP/S 加速

代码语言:javascript
复制
➜  cat ~/.gitconfig
[user]
	email = github-actions[bot]@users.noreply.github.com
	name = github-actions[bot]
[http]
	proxy = socks5://127.0.0.1:7890
	proxy = http://127.0.0.1:7890
[https]
	proxy = socks5://127.0.0.1:7890
	proxy = https://127.0.0.1:7890
[core]
	excludesfile = /Users/xr/.gitignore
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true

Git.SSH 加速

代码语言:javascript
复制
➜  Downloads cat ~/.ssh/config
Host github.com
    HostName github.com
    User git
    Port 22
    Proxycommand    /usr/local/bin/ncat --proxy 127.0.0.1:7890 --proxy-type socks5 %h %p

凑数的

代码语言:javascript
复制
➜  cat ~/.gitignore
.DS_Store
*/.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
Icon
.idea

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-02-22,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Git 优化三连击
    • Git.HTTP/S 加速
      • Git.SSH 加速
        • 凑数的
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档