저장소/git

[Git] 비밀번호 변경하기

불곰1 2020. 2. 16. 18:54

github을 사용하다가 비밀번호를 변경하라는 문구를 받고 웹에서 비밀번호를 변경했는데 bash 상에는 변경이 되지 않는 경우에 아래의 명령어로 저장되어 있는 비밀번호를 초기화 시키면 됩니다.

$ git push
remote: Invaild username or password.
fatal: Authentication failed for '깃 주소'


$ git config --unset credential.helper
$ git push
Username for 'https://github.com': 유저네임
Password for 'https://유저네임@github.com': 패스워드
push 성공