※ 환경
- windows10 x64
- VSCode 설치
- Git 설치
■ github local repository 사용
1. repository 생성
New -> Create a new repository
필요에 따라서 설정 변경
2. directory - repository 연결
repository URL: https://github.com/"계정명"/"저장소이름".git 복사
Ctrl + ` VSCord 터미널 단축키
> git init
현재 위치를 로컬 저장소로 초기화
> git remote add origin "repository.git"
repository 연결
>git remote -v
연결 확인
> git add ./
git add 명령어는 update에 따라 Staged 상태로 변경하는 명령어
예) git add . | git add * | git add directory/. | git add directory/.*
> git commit -m "message"
현재 변경된 사항을 커밋 -m 옵션으로 코멘트를 달 수 있음
> git push origin master
커밋된 파일을 push(업로드)■ 무지성 팁
추 후 작 성