Bamboo House(心中有静)


  • 首页

  • 归档

mac git代理设置

发表于 2020-12-15

起源

工作需要使用代理,浏览器的代理修改可以在浏览器的【高级】->【系统】->【打开您计算机的代理设置】,但是sourcetree仍然无法连接git。

修改方法

打开 ~/.gitconfig
加入如下配置:

1
2
[http]
proxy = hostname:port

注意

代理服务器出现问题的时候或者不需要代理服务器的时候,需要删除上面的配置,否则git操作会报503的错误。

1
fatal: unable to access 'http://xxxxxxxxxxxxx/': The requested URL returned error: 503

Hello World

发表于 2020-06-12

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

liss

2 日志
© 2020 liss
由 Hexo 强力驱动
|
主题 — NexT.Muse v5.1.4