1. git repository 생성

   -git init

 

2. git 저장

 

   (1)특정 파일 저장

      -git add [파일명]

      ex)git add index.html


   (2)모든 파일 저장(이 경로 포함, 하위 모든 폴더/파일 저장)

      -git add .


   (3)커밋

      -git commit -m "description"

      ex)git commit -m "메인 페이지 생성"

 

3. git log 확인

   -git log

 

4. 원격 저장소(GitHub) 연결

   -git remote add [저장 이름] https://github.com/[아이디]/[repository 명].git

   -ex)git remote add origin https://github.com/kdh8500/git_prac.git

 

5. 만든 커밋 푸시

   -git push [저장 이름] master

   -ex)git push -u origin master

 

+ Recent posts