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

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay