# git

공식 홈페이지: https://git-scm.com

# 설치

윈도우의 경우 공식 홈페이지에서 git을 다운받아 설치합니다. 맥은 기본적으로 설치되어 있어 별도의 설치가 필요 없습니다.

# config

git config --global user.name "[NAME]"
git config --global user.email  "[EMAIL]"

# Example
git config --global user.name "john.doe"
git config --global user.email  "john.doe@weperson.com"
1
2
3
4
5
6

git을 설치 후 최초 한번 global하게 user 정보를 설정합니다.

# init

git init
1

최초로 git을 시작할때 해당 폴더를 초기화합니다.

# clone

git clone [URL] <FOLDER>

# Example
git clone git@github.com:wepersondev/wepersondev.github.io.git
git clone https://github.com/wepersondev/wepersondev.github.io.git
1
2
3
4
5

원격지의 git을 다운로드(복제)합니다.

# 참고

  • ssh-keygen: git 프로토콜을 사용하기 위해서는 ssh key를 생성하여야 합니다.
Last Updated: 9/16/2020, 4:20:41 PM