개발아기 2023. 3. 8. 16:10

Git

정의

  • 버전 관리 시스템

Git Repository

Remote Repository

  • Git 내의 원격 저장소

Local Repository

  • 개인 PC (local)의 저장소

용어

Commit

  • 내가 작업 한 내용을 local Repository에 올리는 명령어

Push

  • Local Repository에 Commit한 내용을 Remote Repository에 올리는 명령어

Pull

  • Remote Repository에 있는 내용을 Local Repository로 가져오는 명령어

Git 명령어

Git 초기화

  • git init
  • git config --global user.name "username"
  • git config --global user.email "user email"
  • git remote add origin "git URL"

파일 추가

  • git add .

커밋

  • git commit -m "message”

푸시

  • git push -u origin master