IT/Git

깃허브(github) 윈도 설치

soccerda 2020. 7. 3. 18:50
반응형

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

Windows 버전을 받자

자신의 윈도에 맞는 버전을 받자.

 

현재 최신버전은 Git-2.27.0-64-bit 이다. 

다운 받은 파일을 실행하고 Next!

라인센스 확인
설치 경로 설정
설치 구성 요소 선택

1. Additional icons - On the Desktop

 - 윈도우 바탕화면 Git 아이콘 추가

2. Windows Exporer integration
 - 마우스 오른쪽 메뉴에 *Git Bash Here 과 Git GUI Here가 추가
3. Git LFS (Large File Support)
 - 큰파일 지원

4. Associate .git configuration files with the default text editor
 - git 구성파일을 기본 텍스트 편집기와 연결
5. Associate .sh files to be run with Bash
 - 확장자 .sh 파일을 Bash와 연결
6. Use a TrueType font in all console windows
 - 윈도우 콘솔창에서 올바른 글꼴 사용 (체크시 한글이 깨진다고 함)
7. Check daily for Git for Windows updates
 - 윈도우즈용 Git 업데이트 매일 확인

 

시작메뉴 폴더명
기본 에디터 설정
환경 설정

 

1. Use Git from Git Bash only

 - Git를 Git Bash에서만 사용

2. Use Git from the Windows Command Prompt

 - Git를 환경변수에 등록하고 윈도우 명령창cmd 또는 파워셀등에서도 git명령어를 사용

3. Use Git and optional Unix tools from the Windows Command Prompt

 - 윈도우 명령창cmd에서 Git과 유닉스도구를 사용할 경우 환경변수에 추가 사용시 주의가 필요함 

 

https 전송시 선택사항

1. Use the OpenSSL library

 - 서버 인증 사용시 ca-bundle.crt file 사용해 인증(인증서가 없다면 선택)

2. Use the native Windows Secure Channel library

 - 서버 인증서를 윈도우 인증 저장소를 사용해 인증(회사 내부 CA 인증서도 사용 할수 있다.)

 

줄 바꿈 옵션

Git 저장소에 체크인, 체크 아웃 할 때 줄 바꿈 옵션

1. Checkout Windows-style, commit Unix-style line endings

 - 체크아웃시 윈도우 스타일 커밋시 유닉스 스타일로 변환 (윈도우 사용자)

2. Checkout as-is, commit Unix-style line endings

 - 체크아웃시에는 변환없고 커밋시에만 유닉스 스타일로 변환

3. Checkout as-is, commit as-is

 = 둘다 변환 안함

 

터미널 에뮬레이터 설정

1. Use MinTTY(the default terminal of MSYS2)

 - Git bash 기본 터미널 사용

2. Use Windows’ default console window

 - 윈도우 기본 콘솔 명령창cmd 사용 (제한적이다)

 

git  pull 시 기본 설정

1. Default

 - 가능하면 현재 branch를 가져온 branch로 fast-forward 처리하고 그렇지 않으면 병합 커밋을 생성

2. Rebase

 - 현재 branch를 가져온 branch로 다시 바꿈. 로컬이 없는 경우 fast-forward

3. Only ever fast-forward

 - 가져온 branch fast-forward. 그것이 불가능하면 실패.

 

기타 옵션

기타 옵션

1. Enable file system caching

 - 빠른 실행을 위해 파일 시스템 데이터를 메모리에 캐시

2. Enable Git Credential Manager

 - Git 인증관리자 활성화

3. Enable symbolic links

 - symbolic links 활성화

 

실험 옵션

새로운 기능을 사용할 수 있지만 버그가 존재한다. 

Install!!

설치중
설치 완료

Git Bash를 실행하자

글로벌 변수 설정을 하자.

git config --global user.name "이름"
git config --global user.email "이메일"

 

반응형

'IT > Git' 카테고리의 다른 글

error: pathspec 'new branch' did not match any file(s) known to git.  (0) 2020.07.07
HTTP Basic: Access denied 오류  (0) 2020.07.03
TortoiseGit 설치  (0) 2020.07.03
git branch 명 변경  (0) 2020.04.29
GITHUB IO 웹페이지 만들기  (0) 2020.02.21