[Legacy] Data
깃허브 시작하기(프로젝스 생성)_github project create
Haeon
2020. 11. 22. 03:34
728x90
깃허브 프로젝트 생성 관련 명령어
github repository 생성 후 로컬 연결할 때
(1) git config --global user.email '아이디@이메일.com'
(2) git config --globar user.name '유저 이름'
(3) git init
(4) git remote add origin "repository 주소"
(5) 코드 업로드 준비 : git add .
(6) 코드를 repository에 올릴 때 쓸 메시지 : git commit -m '메시지'
(7) master branch에 코드 업로드 : git push origin master
(8) repository에서 로컬로 코드 복제할 때 : git clone "repository 주소"
(9) add된 파일 다시 unstaging: git reset HEAD 파일명 (전체 파일 unstage: git reset HEAD -- .)
(10) Staging Area 파일의 변경된 부분 확인: git diff --staged
(11) 강제 푸시: git push origin +master
반응형
LIST