반응형
Git 설치
아래 사이트로 이동해서 Download를 눌러 설치해준다.
Git for Windows
Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike. Git BASH Git for Windows provides a BA
gitforwindows.org
설치확인하기
# 버전정보가 나오지 않는다면 설치가 제대로 되지 않은것이다.
git --version
사용자 정보 설정
Git을 설치하고 나서 가장 먼저 해야 하는 것은 사용자이름과 이메일 주소를 설정하는 것이다.
Git은 커밋할 때마다 이 정보를 사용한다. 한 번 커밋한 후에는 정보를 변경할 수 없다.
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
설정 확인
아래 명령어를 통해 git 설정을 확인 할 수 있다.
git config --list
Visual Studio 설정
- 도구 - 옵션 - 소스제어 - 플러그인 선택 - Git 선택
- Git 전역설정 - 사용자 이름, 전자메일 확인
저장소 가져오기
저장소를 가져올 폴더에서 실행
# git clone <Git 저장소 url>
git clone http://abc/openweb/test.git
반응형
'programming > git' 카테고리의 다른 글
[Git] 자주 사용하는 명령어 (0) | 2022.12.13 |
---|