[GitHub] 자동로그인 설정 방법

2020. 12. 5. 14:13Github

1. http를 사용한 저장방법

  1. remote 저장소를 지정한다.

    git remote add origin https://github.com/나머지 주소
  2. git config 를 통해 origin.url에 저장된 url을 id와 pw를 넣어 변경한다.

    git config remote.origin.url "https://로그인아이디:비밀번호@github.com/나머지주소"

  3. push를 해보면 로그인 과정없이 push되는 것을 볼 수 있다.

2. SSH를 사용한 저장방법(리눅스 이용?)

id와 pw를 paintext로 넣어두기 때문에 git config –list를 하게되면 모두 다 보이게 된다. 따라서 이를 다르게 설정해야할 필요가 있다.

https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ 참고

 

(참고: blog.silnex.kr/git-github-command-%EC%9E%90%EB%8F%99-%EB%A1%9C%EA%B7%B8%EC%9D%B8-%EC%84%A4%EC%A0%95%EB%B2%95/)

'Github' 카테고리의 다른 글

[GitHub] .gitignore  (0) 2020.11.12
[GitHub] Github 간단 개념, 사용법  (0) 2020.10.12