git push origin master 명령어를 사용했더니

remote: Support for password authentication was removed on August 13, 2021. Please use a
personal access token instead.

이런 오류가 떴다.

에러원인은
더 이상 패스워드 기반 인증을 지원하지 않아서 생긴 것

Creating a personal access token - GitHub Docs

Creating a personal access token - GitHub Docs

Note: If you use GitHub CLI to authenticate to GitHub on the command line, you can skip generating a personal access token and authenticate via the web browser instead. For more information about authenticating with GitHub CLI, see gh auth login. Personal

docs.github.com

이걸 보고 그대로 따라해서 토큰을 발행한다.
그 후 패스워드 자리에 토큰 복사해서 붙여넣으면

성공!!

'Git' 카테고리의 다른 글

[GitHub] 깃허브 사용법  (0) 2022.01.29

깃허브(GitHub)란?

분산 버전 관리 툴인 깃(Git) 저장소 호스팅을 지원하는 웹 서비스입니다. 쉽게 말하면, 개발자들이 소프트웨어 프로젝트를 개발할 때, 소스코드를 관리하는 저장소라고 할 수 있습니다.

 

 

1. GitHub 회원가입 & Git 설치하기

 

2. Git Bash 열기

 

3. Git 환경설정 하기

 

1) user.name 설정

git config --global user.name "user_name"

2) user.email 설정

git config --global user.email "user_email"

 

4. 정보 확인하기

git config --list

 

GitHub에 코드 업로드하기

1. 초기화

git init

 

2. 추가할 파일 더하기

git add .

.(점)은 모든 파일이라는 뜻, 선택적으로 올리고 싶으면 add 뒤에 파일 이름 붙여주기

 

 

만약 git add . 를 하고

warning: LF will be replaced by CRLF in pom.xml. The file will have its original line endings in your working directory

이런 오류가 난다면 

git config --global core.autocrlf true

이걸 입력하고 다시 하면 됨

 

 

변경된 모든 파일을 add 하고 싶을 때는 -A 옵션 사용

git add -A

 

 

3. 상태 확인 (필수 아님)

git status

 

4. 히스토리 만들기

git commit -m "first commit"

"" 안에는 주고싶은 히스토리 이름을 주기

 

 

마지막 Commit 메시지를 수정하고 싶다면,

git commit --amend -m "변경할 메시지"

 

 

5. GitHub repository랑 내 로컬 프로젝트랑 연결

git remote add origin https://github.com/깃허브이름/레포지토리이름.git

이 명령어는 깃허브에서 복사해서 붙여오기

 

 

6. 잘 연결되었는지 확인 (필수 아님)

git remote -v

 

 

7. 깃허브에 올리기

git push origin master

master 자리에는 branch 이름이 들어가면 됨

 

 

 

'git push origin master' 명령어를 쓰고 오류가 난다면

2022.08.06 - [Git] - [Git] remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead 오류

 

[Git] remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead 오

나는 'git push origin master' 명령어를 사용했더니 remote: Support for password authentication was removed on August 13, 2021. Please use a  personal access token instead. 이런 오류..

yiseul-coding.tistory.com

해당 게시글 참고하기

+ Recent posts