본문 바로가기
[Git]

[Git] github 저장소에 repository 올리기

by Hevton 2021. 6. 22.
반응형

 

1. 회원가입

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 65 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. create repository

- Repository name : 저장소 이름 지정

- Description : 저장소 간단 설명

- Public / Private : 이 저장소를 외부에 공개할 것인지 비공개할 것인지

- Add a README file은 체크하시는게 좋습니다.

 

3. copy repository url

해당 repository에 들어와서, Code를 누르면 url복사가 이렇게 나옵니다. 이 url을 복사해줍니다.

 

 

4. connect

git remote add origin https://github.com/Hevton/oop2.git

이런식으로 주소를 넣어서 명령어를 입력합니다.

 

 

5. push

git push origin master

origin에 github repository 주소를 지정해놨으므로

git push origin 입력하시고, 올리고자 하는 버전을 넣어줍니다. 위 경우 master를 입력해 주었습니다.

 

이후, github 아이디와 비밀번호를 입력해줍니다.

 

 

6. github 홈페이지 확인

해당 repository로 올라가서 main selector를 눌러보면 master가 올라간 것을 볼 수 있습니다. 이걸 클릭하면 제가 올린 버전이 보여지게 됩니다.

반응형