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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay