[Git] git clone 및 업로드 시 access token 하는 법 기록

2022. 3. 3. 08:55·Data Engineering/GitHub
반응형

 

1. 원인


2021년 8월 부로 git 의 로그인 정책이 변경되었으므로

해당 사항을 기록해서 추후 써먹고자 한다.

 

 

 

 

 

2. 방법


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

 

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

--> 위 링크를 참고해서 진행하면 매우 편하다

 

크게 요약하자면 아래와 같다.

 

1 ) 토큰을 생성하여 개인만이 알 수 있는 경로에 저장하고

 

2) 클론시 아래와 같이 뜨면 비밀번호 대신 token 을 입력하는 것이다.

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

 

여기서 주목해야할 점은 패스워드가 로그인 패스워드가 아닌

1번에서 생성한 token 인 것이다.

 

나의 경우에는 위와같이 하고 난 뒤

레포지토리를 clone 하여 무난하게 commit, push 를 진행했다.

 

 

---> 해당사항은 private repository 를 생성하는 경우에만 쓰이는 것 같다

 

 

 

3. 참고 링크


https://miracleground.tistory.com/entry/GitHub-%ED%86%A0%ED%81%B0-%EC%9D%B8%EC%A6%9D-%EB%A1%9C%EA%B7%B8%EC%9D%B8-%ED%95%98%EA%B8%B0-%EC%98%A4%EB%A5%98-%ED%95%B4%EA%B2%B0-remote-Support-for-password-authentication-was-removed-on-August-13-2021-Please-use-a-personal-access-token-instead

 

GitHub 토큰 인증 로그인 하기 - [오류 해결]: remote: Support for password authentication was removed on August 13, 2

오늘 알고리즘 문제를 풀고 푸쉬를 하는데 이런 오류를 만났다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please se..

miracleground.tistory.com

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'Data Engineering > GitHub' 카테고리의 다른 글

[Git] git stash, git cherrypick, git pull/fetch 의 차이 참고 내용 링크  (0) 2023.07.05
[ Git ] SourceTree git ignore 설정  (0) 2021.03.18
[Git] 리포지토리 생성하고 파일 업로드하기  (2) 2021.01.28
[Git] 깃허브 설치파일 다운로드  (0) 2021.01.28
[Git] git hub 리포지토리삭제하기  (0) 2021.01.28
'Data Engineering/GitHub' 카테고리의 다른 글
  • [Git] git stash, git cherrypick, git pull/fetch 의 차이 참고 내용 링크
  • [ Git ] SourceTree git ignore 설정
  • [Git] 리포지토리 생성하고 파일 업로드하기
  • [Git] 깃허브 설치파일 다운로드
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    python error
    linux
    error
    자바
    Python
    node
    java
    install
    설치
    MySQL
    NiFi
    파이썬
    AWS
    Spring
    에러
    API
    json
    리눅스
    Git
    SQL
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[Git] git clone 및 업로드 시 access token 하는 법 기록
상단으로

티스토리툴바