Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 根据启动状态设置git proxy #529

Open
4 tasks done
9suns opened this issue Feb 20, 2025 · 0 comments
Open
4 tasks done

[Feature] 根据启动状态设置git proxy #529

9suns opened this issue Feb 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@9suns
Copy link

9suns commented Feb 20, 2025

Verify steps

  • 我已在标题简短的描述了我所需的功能
  • 我已在 Issue Tracker 中寻找过,但未找到我所需的功能
  • 这是向 GUI 程序提出的功能请求,而不是内核程序
  • 我未在最新的测试版本找到我所需的功能

操作系统

MacOS, Windows, Linux

描述

希望能够在配置项里增加一个当当前proxy连接变更的时候设置http.proxy和https.proxy的功能

  1. 配置项里增加切换git proxy的开关功能,当开关关闭时调用命令行删除proxy设置
  2. 当git proxy 打开的时候,设置git proxy到当前可用的http/https接口

设置git的prox

git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"

取消设置proxy

git config --global --unset http.proxy
git config --global --unset https.proxy

本人有开发能力,如果有开发文档或者指引的情况下可以完成这个功能

@mihomo-party-bot mihomo-party-bot bot added the enhancement New feature or request label Feb 20, 2025
@mihomo-party-bot mihomo-party-bot bot changed the title [Feature] 根据当前可用的连接设置git proxy [Feature Request] Add ability to set git proxy in GUI when connection changes Feb 20, 2025
@9suns 9suns changed the title [Feature Request] Add ability to set git proxy in GUI when connection changes [Feature] 根据启动状态设置git proxy Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant