Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gistee/69ddb1b7172eba265f39578ff66c4903 to your computer and use it in GitHub Desktop.
Save gistee/69ddb1b7172eba265f39578ff66c4903 to your computer and use it in GitHub Desktop.
# 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