본문 바로가기
JavaScript/React

[React] #1.1 Creating a Github Repository (#코딩공부)

by 함께 공부해요 2020. 5. 15.

https://youtu.be/2JCQUgH1C4I


<복습>

https://wook-2124.tistory.com/124

 

[React] #1.0 Creating your first React App (#코딩공부)

https://youtu.be/j2jhnq8RnfU <복습> https://wook-2124.tistory.com/123 [React] #0 Requirements (#코딩공부) https://youtu.be/gJdHKIj0Bx4 <준비물> https://code.visualstudio.com/ Visual Studio Code - Co..

wook-2124.tistory.com


<준비물>

https://code.visualstudio.com/

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com


1. GitHub Repository

 

GitHub를 다운받고 계정에 가입한 뒤 사용하는 방법에 대해서는 밑에 올린 포스팅을 참고하시길 바랍니다.

 

https://wook-2124.tistory.com/1?category=892561

 

[GitHub] 1. GitHub Desktop 다운로드/설치하기! (#코딩공부)

유튜브에서 https://youtu.be/V9AGvwPmnZU 영상을 보고, '하루에 4시간' 만큼은 관심있는 분야(주로 IT) 독학 공부를 위해, 그리고 기록하는 목적으로 포스팅을 시작했다. 일단 영상에 나오는 동욱님께서��

wook-2124.tistory.com

https://wook-2124.tistory.com/2?category=892561

 

[GitHub] 2. GitHub Repository 및 사용법 (#코딩공부)

2. GitHub Repository(저장소) 및 사용법 오늘은 새로운 Repository를 Hard drive 와 연동하는 방법 그리고 GitHub 사용법 대해서 포스팅하려 한다. 사진에서 보이는 것 같이 하드에 새롭게 폴더가 생기고 연동

wook-2124.tistory.com

 

GitHub 계정 생성을 완료하고 Create a new repository버튼을 클릭해서 새로운 Repository(저장소)를 만들자.

 

VSC에서 이미 README를 생성했기 때문에 새로 README를 추가하지 않고 그대로 Create repository 버튼을 누르면 된다.

 

체크되있는 부분을 VSC 터미널에 입력해주자.


2. git remote add origin {URL}

git init으로 initializing(초기화)시켜주고, 체크된 git remote add origin {URL}를 입력해주자.


3. git commit -m "__"

다음으로 git add . 으로 안에 있는 내용을 다 추가하고, git commit -m "설명할 내용"으로 commit해주자.


4. git push origin master

git push origin master를 입력하면 GitHub 계정으로 로그인하라는 표시가 뜬다.

 

여기서 commit과 push의 개념을 잘 이해해야되는데

 

쉽게 정리하면, commit로컬 저장소(Local Repository)에 변경사항을 적용(저장)시키는 것이고, push원격 저장소(Remote Repository)에 정보를 업데이트 하는 것이다.

 

로그인까지 완료하면 로컬 저장소(Local Repository)에 있는 정보를 원격 저장소(Remote Repository)에 저장하는데 성공한 것이다.

 


5. GitHub Desktop

documents > movie_app로 생성된 폴더를 Add existing repository로 가져와주면

 

좀 더 편안하게 GitHub Desktop으로 git을 관리할 수 있다.

댓글