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
※ github 회원가입 후 로그인

1. Token 생성
※ 우측 상단에 아이콘 클릭 → Setting

※ 좌측 메뉴 맨 아래쪽에 Developer settings

※ Personal access tokens → Generate new token

※ 토큰 이름 및 권한 설정

※ Generate token 클릭하여 토큰 생성

※ 토큰 복사

2. Repository 생성
※ 우측 상단 + 아이콘 클릭 → New repository 선택

※ 이름 및 공개 범위 설정 후 repository 생성

※ repository 연결할 폴더 생성

※ 아래 나와있는 방식으로 repository 생성

※ git push 후에 웹 브라우저에서 뜨는 창에 위에서 생성한 토큰 입력
$ echo "test" >> README.md
$ git init
$ git add README.md
$ git commit -m 'first commit'
$ git remote add origin https://github.com/mhan808/test.git
$ git push -u origin main
※ token 인증


※ github에서 리포지토리 확인
