git push를 했더니 username, password를 입력하라고 나와 입력했다.
그 후
에러 메세지 :
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#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/seacoding1/jobfair.git/'
참고 https://hyeo-noo.tistory.com/184
[Mac] GitHub push token 오류 해결
Github 오류 7.29일 새벽 갑자기 git push가 안 되는 현상을 겪었다. 오류의 첫 줄이 무슨 말이냐면 Password 인증방식이 일시적으로 brownout(shutdown?)되었다. Password 대신에 personal access token을 사용해주세
hyeo-noo.tistory.com
1. 깃허브 settings

2. 왼쪽 사이드 바 Developer settings

3. 왼쪽 사이드 바 Personal access tokens


4. access tokens 생성




generate token!
5. 창 나가지 말고 토큰 복사하기
command ⌘ + space 눌러서 keychain 검색!
github 검색 해서 나오는 github.com 를 삭제하면 된다.
나는 원래부터 아무것도 없었다..!

터미널에서 user 정보 입력
git config --global user.name "username"
git config --global user.email "githib에 등록된 이메일"

다시 원래 하려던 git push 를 해보면...
$ Username for https://github.com : 유저네임
$ Password for https://github.com/seacoding1 : 어세스토큰주소
password에 반드시 아까 복사한 access token 주소 넣기!
이렇게 하면 push 가 에러없이 잘 되는것을 확인할 수 있다.
'ect' 카테고리의 다른 글
pm2 프로세스 저장하는 방법 (0) | 2024.04.01 |
---|---|
pm2 "npm run start"로 실행하기 (0) | 2024.04.01 |
git | 레파지토리 복사하기 (0) | 2023.04.15 |
뿌띠 (0) | 2023.04.05 |
git | 명령어 (0) | 2023.03.30 |