Created
July 9, 2018 14:23
-
-
Save gistee/611fb946d47535b4223ba75d8a221cc0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# github에서 생성한 repository에 연결하기 위한 ssh key 생성하기 | |
ssh-keygen -t rsa | |
# 생성된 key를 github repository에 등록 (발표자료 참조) | |
# blog app 경로로 이동 후 git init 실행 | |
cd blog; | |
git init | |
# github의 사용자 계정 연결 (아래의 이메일, 사용자 이름 중 하나를 선택하여 진행) | |
git config --global user.email "<user-email>" | |
git config --global user.name "<user-name>" | |
# 현재 경로 파일을 모두 stage로 올리기 | |
git add . | |
git commit -m "first commit" | |
# github repository의 remote 정보 등록 | |
git remote add origin <repository-remote-address> | |
git remote -v | |
# master 브랜치로 강제 push 하기 | |
git push -f origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment