Published 2022. 10. 12. 15:07

1. https://github.com/ 접속해서 회원가입

 

GitHub: Where the world builds software

GitHub is where over 83 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

 

2. https://desktop.github.com/ 접속해서 해당 프로그램 설치하기

 

GitHub Desktop

Simple collaboration from your desktop

desktop.github.com

 

3. 원격저장소 만들기 

https://github.com/ 접속하여 로그인 후 Your repositories > NEW 클릭

Add a README file 체크

 

4. 원격저장소를 내 PC로 클론(Clone)하기 

-만들어진 원격저장소에 들어가 Code > Open with GitHub Desktop 클릭

-내 PC의 어떤 경로에 저장 시킬것인지(즉, clone할껀지) Local path 수정 후 clone 버튼 클릭 => 해당 경로에 폴더가 만들어진 걸 확인할 수 있음

 

5. 로컬저장소의 변경사항을 원격저장소에  업로드(commit & push)

-로컬저장소에 간단하게 파일을 하나 만든 후 GitHub Desktop을 다시 보면 Changes 탭에 해당 파일이 보여짐

* Changes 탭 : 원격저장소와 로컬저장소를 비교하여 로컬저장소에 변경사항이 생겼을 경우 이를 원격저장소에 올릴 껀지 해당 변경사항의 파일이 보여짐

-해당 변경사항의 파일을 원격저장소로 업로드 시키고자 한다면 commit 후 push 진행 이때 commit message를 작성하는데 제목과 내용을 작성하여 “어떤 파일”을 “어떻게” “왜” 변경했는지 상세 작성 후 commit and push 진행함

 

6. 원격저장소의 변경사항을 로컬저장소로 다운로드 (pull)

혹시라도 원격저장소에 변경사항이 생겼을 경우 이를 로컬저장소로 다운로드 받고자 한다면 pull을 하면됨 (pull 내역이 바로 보여지지 않는다면 Fetch origin 버튼(새로고침 같은거)을 클릭하면 됨)

복사했습니다!