Can I comment out a line in a .git/config file?

I have a http.proxy line on my repository configuration file that I would like to ‘turn on and off’ easily without having to remember and type again the whole configuration every time I’m behind or free from this proxied connection.

Another possibility would be to use this repository configuration file when I’m behind the proxy and when not, use a global/local configuration file without any proxy setup.

1 Answer
1

Leave a Comment