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.
Yes, you can comment lines out of Git config files using #
or ;
.
From the documentation:
Syntax
The syntax is fairly flexible and permissive; whitespaces are mostly ignored. The
#
and;
characters begin comments to the end of line, blank lines are ignored.
ReferenceURL : https://stackoverflow.com/questions/21297970/can-i-comment-out-a-line-in-a-git-config-file
'source' 카테고리의 다른 글
Git 복사 파일 기록 보존 (0) | 2023.06.26 |
---|---|
vuex 알 수 없는 작업(또는 변환) 유형 (0) | 2023.06.26 |
"gitrm --dll x" vs "git reset head --x"? (0) | 2023.06.26 |
c/c++에서 포인터의 주소를 얻는 방법은 무엇입니까? (0) | 2023.06.26 |
Sublime Text를 Git의 기본 편집기로 만들려면 어떻게 해야 합니까? (0) | 2023.06.26 |