Programming skills/Git

Git 설치 및 기초(add, commit)

제이커브(Jcurve) 2022. 9. 27. 20:12

개발자 필수툴로 작업 코드들을 기록하는 툴이다.

 

Mac 유저로써 Homebrew로 간단하게 설치했다.

 

1. brew install git

2. 터미널
git config -- global user. name "  "

git config -- global user. email " "

3. Git 설치 완료

 

작업폴더 만든다. Visual studio code에서 작업 
비코는 editor라고 생각한다

 

1. git init

2. 파일 설치 후 000.txt 파일 만들기

3. 백업하는 법 
터미널에
git add 000.txt 
git commit 

 

git add -> staging area -> git commit -> repository

 

용어정리

git status : 파일 현재 상황 파악

git log : commit 한 내역들 리뷰

 

한줄요약 : git은 버전 만들기(기록 남기기)