useful

[Git] git push 할 때, 아이디와 암호를 계속 입력

GunwooYun 2022. 5. 14. 18:25

commit 하고 push 하려고 하면 아이디와 암호를 계속 물어본다.

처음에 아이디와 토큰을 넣고 이제부터 되겠지 하지만, 다시 push 하면 재차 물어본다.

Aksing everytime

아래 명령어로 해당 문제를 해결할 수 있다.

git config --global credential.helper store

혹은 현재 세션으로 제한하거나 시간을 제한할 수 있다.

 

git config --global credential.helper cache

OR

git config --global credential.helper 'cache --timeout=600'

 

출처 :

https://www.freecodecamp.org/news/how-to-fix-git-always-asking-for-user-credentials/