git

git 설치 및 환경 설정(이름, 이메일)

donie 2020. 11. 12. 11:31

1. Git 설치

윈도우 버전을 다운받아 설치하였다.

https://git-scm.com/downloads

 

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

git 설치를 할 때, 옵션 하나하나 다 찾아보고,

열심히 캡처를 하긴 했지만,

모든 옵션을 다 default설정 그대로 진행하였다.

다운로드 위치
옵션 설정. 잘 몰라서 그대로 진행.
시작메뉴에 폴더를 만들것인지.
기본 에디터 설정.

기본 에디터를 설정할 때 무엇으로 해야하는지 고민이 많았는데, 아래 글을 보고 Vim으로 설정하였다. (Vim이 default임)

출처 : http://web.mit.edu/6.005/www/fa14/tutorial/git/config.html#:~:text=On%20Windows%2C%20if%20you%20use,editor%2C%20like%20nano%20or%20notepad.
모르겠어어 default로 설치.

마지막 install을 눌러 설치를 진행한다.

 

2. Git Bash 실행

윈도우 시작메뉴에서 Git Bash를 검색해 실행한다.

git --version 명령어를 실행해 git 버전 확인

환경설정할 때, 이름과 이메일 등록

git config --global user.name "FIRST-NAME LAST-NAME"

나는 이름을 "HS RHO"으로 설정함.

git config --global user.email "EMAIL@example.com"

나는 네이버 이메일로 설정함.

설정 확인

git config --list