Presentation is loading. Please wait.

Presentation is loading. Please wait.

remote add origin <GitHub url>

Similar presentations


Presentation on theme: "remote add origin <GitHub url>"— Presentation transcript:

1 remote add origin <GitHub url>
: add octocat.txt ▶ octocat.txt 를 staging area 에 더해라. : add –A . ▶ current directory의 모든 파일을 staging area 에 더해라 reset unstaged checkout 모든 변경 사항을 제거 ex) checkout – octocat.txt rm : local directory 와 staging area에서 함께 지우는 것 commit snapshot ▶ git commit –m “Add cute octocat story” staging area에 있는 파일들을 snapshot을 찍어서 local repository에 더하고, snapshot 에 “Add cute octocat story” 라는 이름을 붙여라. push –u origin master master(local repository) 에 있는 snapshot을 origin(remote repository)로 복사해라. -u : origin 과 master를 기억하는 것으로, 이후에는 git push 만 하면 된다. local directory add staging area commit local repository (default : master) push remote repository (수동 생성 필요) reset checkout rm pull checkout master master로 이동 merge <branch명> master 와 branch 합치기 branch –d <branch명> branch 삭제하기 init : project 폴더에 GitHub 사용에 필요한 설정 파일이 담긴 .git 폴더 생성 status local directory 파일의 GitHub 반영 상태 확인 ㆍuntracked files – local directory 에만 있는 상태 changes to be committed - staging area에 있는 상태 nothing to commit - 모두 local repository에 더해진 상태 staging area 의 목적 : local repository 에 파일을 더하기 전에 파일을 그룹화함 branch <branch명> branch 추가 checkout <branch명> branch로 이동 remote add origin <GitHub url> GitHub url 에 origin 이란 이름의 remote repository 생성 전형적으로 origin 이라는 이름으로 생성 local repository branch log : snapshot 들의 이름 목록 log –summary + commit 한 파일 목록


Download ppt "remote add origin <GitHub url>"

Similar presentations


Ads by Google