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
반응형