본문 바로가기
git

Git, Pull/Push할 때 id, password 묻지 않게 하기

by 코타 2025. 5. 27.

git 사용 시 id, password를 매번 물어보지 않게 설정하는 방법이다.

 

처음에 소스를 clone 하거나 pull 하면 id, password를 물어볼 것이다.

git clone, git pull 등의 명령어 실행

 

그때 id, password를 입력해서 명령어를 실행한다.

그리고 아래 명령어를 입력한다.

git config --global credential.helper cache
git config --global credential.helper store

 

쉘에서 위 명령어를 입력하면 로그인 정보를 credential에 저장해 둔다.

그러면 더 이상 id, password를 물어보지 않을 것이다.

 

반응형

'git' 카테고리의 다른 글

error:failed to push some refs to  (0) 2022.03.16

댓글