Dev metacog/Common

git 사용

잘 배우고, 잘 익히기 2021. 2. 3. 19:10

 

정의 추가 저장
git init git add ; git commit git remote add origin 
구분 단계 명령어
다운로드, 설치 git-scm.com/downloads
원격 저장소 생성 github에 repository 생성 github.com 에서 repository 생성
원격 저장소에 저장 깃 초기화 : 현 디렉토리를 git디렉토리로 정하기 $ git init
깃에 포함 : stage에 추가  $ git add .
깃 확인 $ git status
커밋  $ git commit -m "[comment]"
원격의 깃허브에 저장 $ git remote add origin https://github.com/github_id/repository_name
원격 깃허브 확인 $ git remote