처음 프로젝트 올리기
- git init
- git add . : 파일 전부 올리기
- git add 올릴 파일 : 특정한 파일만 올리기
- git status : 상태를 알려주는 명령어
- git commit -m “first commit” : history 만들기
- git remote add origin 저장소 주소 : 연결 고리 만들기
- git push origin master : master branch에게 보내기
새로 추가하고 싶을 때
- git add . (git init 필요 없음)
- git commit -m “second commit”
- git push origin master
내 컴퓨터로 저장
- git clone 저장 주소 저장 폴더
협업 할 때
- git add .
- git commit -m “freshman commit”