Git

git 설치

bornsoon 2024. 5. 15. 17:40

1.Git 다운로드&설치

Git - Downloading Package (git-scm.com)

 

Git - Downloading Package

Download for Windows Click here to download the latest (2.45.1) 32-bit version of Git for Windows. This is the most recent maintained build. It was released about 15 hours ago, on 2024-05-14. Other Git for Windows downloads Standalone Installer 32-bit Git

www.git-scm.com


2.git clone하기전에 컴퓨터에 SSH Key 생성

 

#SSH-Key 생성

$ ssh-keygen

(passphrase 입력 없이 Enter)

 

.ssh 폴더안에 개인키(id_rsa)와 공개키(id_rsa.pub)가 생성되었으면 공개키를 복사해서 (cat id_ras.pub 명령도 ok) Git Hub에 등록하기

(개인키는 절대 공개하면 안됨!)


3.SSH Key(공개키)를 Git Hub에 등록하기

  -프로필 → [Settings]

  - [SSH and GPG keys] → [New SSH Key]로 들어간다.

  -원하는 Title 입력하고 Key부분에 붙여넣기


4.repository clone하기 

원하는 repository SSH key 복사( <>Code  선택 > SSH클릭 )

$ git clone (복사한 SSH Key)
728x90

'Git' 카테고리의 다른 글

git의 원격 저장소(remote) 연결 및 끊기  (0) 2024.09.15
Git에서 강제로 pull하기  (0) 2024.09.11
자주 쓰는 Git 명령어  (0) 2024.08.04
Git 자주 쓰는 branch 명령어  (0) 2024.08.04
git 기초  (0) 2024.05.15