Git

[Git] Git 설치, Sourcetree 설치하고 깃허브와 연결 설정하는 법

자바칩 프라푸치노 2021. 6. 26. 18:48

1. Git 설치

https://git-scm.com/

 

Git

 

git-scm.com

 

 

 

2. Sourcetree 설치

https://www.sourcetreeapp.com/

 

Sourcetree | Free Git GUI for Mac and Windows

A Git GUI that offers a visual representation of your repositories. Sourcetree is a free Git client for Windows and Mac.

www.sourcetreeapp.com

 

 

 

3. Sourcetree 설정하기

https://github.com/settings/tokens

 

GitHub: Where the world builds software

GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

여기로 들어간다.

소스트리에서 깃허브를 사용하기 위해서 일종의 비밀번호 (token)을 발급받아 사용할 것이다.

 

저 페이지로 들어가면 이런 화면이 보일텐데

Generate new token 을 클릭한다.

 

 


위와 같이 체크를 해주고 초록색 버튼을 클릭한다.

 

 

 

그러면 토큰이 발급된다.

저 토큰을 복사한다.

이 토큰 값은 보안 상의 이유로 절대로 다시 볼 수 없다.

까먹었다면 새로 발급 받으면 된다.

 

 

 

그다음 소스트리로 가서 도구-> 옵션으로 들어간다.

인증으로 들어가서 추가를 누른다.

 

위와 같이 설정해주고

사용자명에 자기 이름을 적는다.

그리고 비밀번호 새로 고침을 누른다.

 

저기에 아까 복사한 토큰을 복붙해놓는다.

 

 

 

그러면 소스트리와 깃허브가 연결되었다.

 

728x90