IT/개발

GIT 명령어 정리

mj73 2021. 1. 18. 13:38

git init

git remote add origin 주소적으세요

 

 

 

-Command

 

[Pull]

git pull origin master : 지정해놓은 Repository에서 끌어오는 명령어

 

 

 

[Push]

1. git status : 현재 나의 로컬 폴더와 Git과의 상태를 체크하는 명령어

 (untracking file 확인 가능)

 

2. git add . (온점 주의): 로컬 폴더와 Git 사이의 변경된 파일들을 모두 Tracking 하는 명령어

 

3.

git config --global user.email "이메일적으세요"

git config --global user.name "이름적으세요"

 

4. git commit -m "message" : commit을 달 수 있는 명령어

 (git에 push를 할 때 알리기 위한 커밋, 간결하게 작성하세요)

 

5. git push origin master : Git에 PUSH 하는 명령어