git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags netfilx_skip srlee:srlee
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/devsurimlee/netfilx_skip.git/': The requested URL returned error: 403

Pushing to https://github.com/devsurimlee/netfilx_skip.git
오류가 나면서 완료됨.

 

https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/

 

Token authentication requirements for Git operations | The GitHub Blog

Beginning August 13th, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.

github.blog

 

In July 2020, we announced our intent to require the use of token-based authentication (for example, a personal access, OAuth, or GitHub App installation token) for all authenticated Git operations. Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.

 

2020년 7월 , 우리는 인증된 모든 Git 작업에 대해 토큰 기반 인증(예: 개인 액세스, OAuth 또는 GitHub 앱 설치 토큰)을 사용하도록 요구하겠다고 발표했습니다. 2021년 8월 13일부터 GitHub.com에서 Git 작업을 인증할 때 더 이상 계정 암호를 허용하지 않습니다.

 

 

기존
변경 후

기존 URL: https://<git_url>.git

변경 URL: https://<username>:<token>@<git_url>.git

 

위의 형식으로 변경하면 정상적으로 작동한다.

 

gitHub 토큰 생성은 아래를 참고하면 됨.

 

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

 

Creating a personal access token - GitHub Docs

Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line. If you want to use a PAT to access resources owned by an organization that uses SAML SSO, you must authorize the

docs.github.com

 

 

 


 

참고글

 

https://howieyoung.medium.com/suffering-from-the-latest-403-error-from-github-on-sourcetree-e04a844efd35

 

Suffering from the latest 403 error from GitHub on SourceTree?

This article may save your ass.

howieyoung.medium.com

https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-ignores-github-token-and-throws-403-error/qaq-p/1778978

 

Sourcetree ignores github token and throws 403 error

I have generated personal token on github and entered it in password field successfully, but when I try to fetch from my repo sourcetree throws me following error: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags

community.atlassian.com

 

+ Recent posts