Setting proxy for Git on mac!

Let me tell you first that i really hate proxy settings and stuff! It is seriously a big headache! But it is necessary in all the times, customarily it will be very handy at schools and workplaces! So lets see how to set the proxy for git on unix machine [Mac].

Step1:Open your terminal.

Step2: Type the command  git config –global http.proxy [your proxy website or the ip address]

         For example: git config –global http.proxy http://10.11.32.9:8888

Step3: You can now check what are the settings configured in the gitconfig by executing the following command

Zerocools-MacBook:~ pamusriharsha$  git config –list

For example: It would be something as this

user.name=applecool
                            user.email=applecoolkmit@gmail.com
                            http.proxy=http://10.11.32.9:8888

That’s it here we go. Your proxy settings for your git is successfully completed!😀

Have fun!🙂😀

5 comments

  1. I’m doing this, and work:
    git config –global –add http.proxy [proxy-value]

    to delete proxy:
    git config –global –unset http.proxy

    to check:
    git config –global –list

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s