github token 자동 로그인
github에서 push을 하려면 이제 token 값을 넣어야 할 수 있다.
혹시 토큰 발급받는 방법은 이것을 참고하기 바란다.
https://sims-solve.tistory.com/44
[오류] github / Support for password authentication was removed on August
remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories..
sims-solve.tistory.com
여기선, 토큰을 발급 받고 push할때마다 지속적으로 토큰을 입력해야 하는데.. 문제는 토큰 발급 화면을 나가면 더이상 토큰 값을 볼 수 없다는 것이다..
그럼 메모장이나 다른 곳에 저장해 두고 지속해서 복사해서 써야 한다는 소리인데.. 귀찮다..! 자동으로 되게 해보자.
정말 간단하다..
git config --unset credential.helper
git config credential.helper store
을 한 후 push를 한다. 그럼 유저 이름과 password(토큰값)을 요구 하는데 초기 한번은 입력을 해줘야 한다.
그 후 commit 후 다시 push를 하면 위에 볼 수 있는 것처럼 유저이름/토큰값을 요구하지 않고 바로 올라가는 것을 볼 수 있다.