본문 바로가기

IT/git

[Git] Github를 이용한 Git Repository 만들기

1. github 회원 가입하기

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 50 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. Git Repository 생성하기

github에 로그인 후 오른쪽 상단에 +버튼을 눌러서 New repository를 클릭해주세요.

 

1) Repository name 입력
2) Description 입력
3) public 선택  (private은 유료지만, 3명까지는 무료라고 합니다.)
4) create repository

 

3. git과 gitbash 설치하기

git은 필수지만 gitbash는 선택입니다.
2020/06/15 - [IT/git] - [git] git 설치하기
 

[git] git 설치하기

안녕하세요. 이번에는 많은 곳에서 사용되고 있는 git 설치 방법에 대해 포스팅해보겠습니다. 1. Git 설치 파일 다운로드 아래 경로에서 os에 맞는 git 설치 파일을 다운로드 해주세요. https://git-scm.c

bamdule.tistory.com

4. Git clone

1) 생성한 git repository의 주소를 복사합니다.
ex) https://github.com/Bamdule/myRepo.git

2) 원하는 경로에서 git bash를 실행시켜줍니다.

마우스 우클릭

3) git clone (git주소)를 입력해 줍니다.

5. git push

1) clone한 디렉토리로 이동하여 아무 파일이나 만들고 git bash에서 새로 만든 디렉토리로 이동해줍니다.

해당 디렉토리로 이동한 후 마우스 우클릭 > Git Bash Here 버튼을 눌러도 됩니다.

2) git add .

새로 생성한 파일을 add 해줍니다.

3) git commit -m "commit message"

commit 메시지를 입력해줍니다.

4) git push orgin

git 원격 저장소로 소스파일을 업로드합니다.

'IT > git' 카테고리의 다른 글

[Github] GitHub Gist 사용하기  (1) 2021.03.31
[Git] Github를 이용해서 무료 웹페이지 만들기  (0) 2020.12.02
[git] git 설치하기  (0) 2020.06.15
[Git] git Source File Status  (1) 2020.01.01
[Git] git을 이용한 소스코드 관리  (0) 2019.12.31