처음 프로젝트 올리기

  1. git init
  2. git add . : 파일 전부 올리기
  3. git status : 상태를 알려주는 명령어
  4. git commit -m “first commit” : history 만들기
  5. git remote add origin 저장소 주소 : 연결 고리 만들기
  6. git push origin master : master branch에게 보내기

새로 추가하고 싶을 때

  1. git add . (git init 필요 없음)
  2. git commit -m “second commit”
  3. git push origin master

내 컴퓨터로 저장

  1. git clone 저장 주소 저장 폴더

협업 할 때

  1. git add .
  2. git commit -m “freshman commit”