---
title: "Proxy Config for Git"
date: 2023-03-31T09:36:53.000Z
author: Z.SHINCHVEN
tags: [proxy, git]
canonical: https://atlassc.net/2023/03/31/proxy-config-for-git
---
Accessing GitHub becoming harder in less developed country these days, you might need a proxy to do that. Here is how to configure proxy for git.

Please edit `~/.gitconfig` and add the following lines:

```.gitconfig
[http]
    proxy = socks5://127.0.0.1:1089
[https]
    proxy = socks5://127.0.0.1:1089
```
