GitHub 사용해보자
https://github.com/ 가입을 먼저 하고!
온라인 저장소 만들기
로그인 후 Your repositories 페이지에 들어가 준다.
New 버튼을 눌러주면 이런 화면 이 뜬다.
기억하기 쉬운 적당한 이름을 지어준다.
Initialize this repository with a README 체크를 안 해주어도 무방하다.
온라인 저장소 삭제
Settings 페이지에 들어가 쭉 내려가 Delete this repository 클릭!
삭제할 저장소 명을 적으라는 팝업이 뜨는데 적어주고 나면 끝. 삭제!
github 설정
git bash를 설치하고 열어본다.
git config --global user.name "커밋에 뜰 내 이름"
git config --global user.email "github 가입할 때 쓴 내 메일"
로컬파일 온라인 저장소에 올리기
로컬파일에서 git bash열고
git init
git remote add origin https://github.com/나의 아이디/온라인 저장소 파일명.git
git add.
git commit -m "커밋명"
git push origin master
push 하면 로그인을 하라고 뜬다.
본인의 github ID와 비밀번호를 치면 업로드 완성! 완성!
반응형