앞서 Visual Studio Code를 설치를 완료했다.
1. 다음으로 git 연동을 위해 설치해야 할 것은 바로
git-scm.com/download
Git - Downloads Downloads Mac OS X Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific git-scm.com
가장 최근 Release 버전을 본인의 PC에 맞게 다운 받는다.
2. exe 파일을 실행
default 세팅으로 진행하다가 중간에 Choosing the default editor used by Git 단계에서 반드시
Use Visual Studio Code as Git's default editor를 선택해야 한다
나머지는 모두다 디폴트로 진행
3. git 설치 확인하기
4. local 경로와 git 계정 연동
이전 게시물에서 Visual Studio Code 설치 후 소스코드를 관리할 경로를 만들어 두었었다.
나의 경우는 D:\WebApp 폴더 아래에 소스코드를 관리할 것이다.
1) 설치된 git CMD를 실행한다.
2) 나는 D드라이브 밑에서 소스코드관리를 하기 때문에 D드라이브로 경로를 이동한다.
> d:
> dir
> cd WebApp
명령어를 통해서 소스코드를 관리할 폴더위치까지 이동한다.
3) github 계정과 연동을 진행
> git --version
> git config --global user.name "깃허브유저이름"
> git config --global user.email "깃허브이메일계정"
> git init
5. 소스코드 관리 폴더에서 .git 폴더 생성 확인
*안보일 시 보기-숨긴항목 체크
'개발공부' 카테고리의 다른 글
[코딩테스트] 탐욕법(Greedy) - 프로그래머스 1. 체육복 (python) (0) | 2021.09.06 |
---|---|
[캐글스터디] kernel density estimation (0) | 2021.04.07 |
1. Visual Studio Code 설치 (0) | 2021.02.21 |