티스토리 뷰

Backend/꾸준히 TIL

git config --replace-all 옵션

개발하는 후딘 2022. 7. 18. 23:33
728x90
반응형

[문제사항]

error: 여러개의 값을 하나의 값으로 덮어쓸 수 없습니다.

user.name을 (를) 변경하려면 정규식을 쓰거나, --add 또는 --replace-all 옵션을 사용하십시오.


[해결방안]

$ git config --global user.name "<github계정 유저네임>"

--replace-all : Default behavior is to replace at most one line. This replaces all lines matching the key (and optionally the value-pattern).

--replace-all 옵션 :  여러개의 값을 하나의 값으로 대체시키는 역할을 합니다.

 

[명령어 형태]

$ git config [<file-option>] [--type=<type>] [--fixed-value] --replace-all <name> <value> [<value-pattern>]

 


[참조]

https://git-scm.com/docs/git-config

 

Git - git-config Documentation

When using the deprecated [section.subsection] syntax, changing a value will result in adding a multi-line key instead of a change, if the subsection is given with at least one uppercase character. For example when the config looks like [section.subsection

git-scm.com

 

728x90
반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함