DEV Community

Arun Kumar Singh
Arun Kumar Singh

Posted on

2 2

Git to Use Proxy

Git is a most widely used open sourced modern version control system in the world. Git follows distributed architecture (DVCS). Using git inside proxy network is always challenging. Git config allows you quickly configure proxy in seconds.

Update Git proxy config using following command:-

$ git config --global http.proxy http://proxyUser:proxyPass@proxy.server.com:port

Enter fullscreen mode Exit fullscreen mode

If you want to work in another place where no proxy is there then unset it.

git config --global --unset http.proxy

Enter fullscreen mode Exit fullscreen mode

Apart from this git provide a way by which you can open global config file in your editor for update other config items.

$ git config --global --edit
Enter fullscreen mode Exit fullscreen mode

If you want to quickly configure you checkin username and email then -

$ git config --global user.name "Arun Singh"
$ git config --global user.email "dummy@email.com"

Enter fullscreen mode Exit fullscreen mode

Ref: https://git-scm.com/docs/git-config
Good Help: https://gist.github.com/evantoli/f8c23a37eb3558ab8765

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more