GitHub - password auth

Thomas·2023년 5월 19일
0

오랜만에 깃허브를 사용할려고 git을 만들 해당 폴더에 가서

git init
git add README.md
git add <File name>
git commit -m <"message">
git brnach -M main2
remote add origin <gir_URL.git>
git push -u origin main2

쳤는데... 마지막 푸쉬가 안 되고

이런 메세지가 뜬다...
"password authentication"이라는 단어만 보고 비밀번호를 변경후 해도 안 됐는데
알고보니 비밀번호를 인증 지원을 하는 기간이 지나버려서... 다시 비밀번호로 푸쉬를 하고 싶으면 토큰 또는 ssh으로 인증을 해줘야한다.

그래서 새로운 토큰을 만들어서 인증해주니 잘 푸쉬가 되었다!

깃허브에서 토큰 생성하기

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

profile
Backend Programmer

0개의 댓글