local repository에 있는 파일들을 remote 해보자~
github에서 새로운 repository를 생성 한다.
윈도우 기준 git bash를 실행시켜
ls -a ~/.ssh or ls -al ~/.ssh를 입력하면
ssh가 있다면 아래처럼 나올 것이다.
없다면 ssh키를 생성해야한다. github docs 참조!!
https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/checking-for-existing-ssh-keys
< gitHub docs >
생성한 ssh를 github
밑줄친 SSH and GPG keys에 등록하면된다. gpg아니고 new ssh key버튼을 클릭!
그 후에 github에서 생성한 프로젝트에 있는 코드를 콘솔창에 한줄씩 copy and paste 하면된다.
난 이미 local repository에 올렸으니
두번 째 칸에 있는 코드를 copy and paste 해주었다.