반응형
- 최초설정
git config --global core.autocrlf true //windows
git config --global user.name 'choi-solyi'
git config --global user.email 'choi-solyi@naver.com'
git config --global --list //등록된 내용 확인
- git 생성 및 커밋 / 푸시
- git init // 현재 프로젝트에서 변경사항을 추적 (버전관리)
git status //아무것도 안뜸
git add . // 마침표 = 모든 파일
git status
git commit -m 'Start project' //프로젝트 생성 (메세지m과 함께 버전을 생성)
파일추가 후
git add . // 다시 모든 내용 추적하도록 명령
git commit -m '파일추가' //파일 추가라는 메세지를 추가
git log //로그 조회
git remote add origin https://github.com/URL // remote 원격 add추가하겠다
git push origin master //업로드 - git push origin master -f //강제
- git clone
vscode 실행 후 커맨드창에 git: clone 검색 후 리파지토리 url 복붙
알아서 가져와줌..
- 다른 컴퓨터에서 깃을 받을 때 변경사항이 있으면 충돌이 난다.
- git fetch
- git pull origin master
반응형
'유료강의' 카테고리의 다른 글
bundler 2.bundler (0) | 2021.10.17 |
---|---|
bundler 1. parcel (0) | 2021.10.17 |
Node.js npm 버전관리 / gitignore (0) | 2021.10.15 |
Node.js 설치 및 실행 방법 (0) | 2021.10.15 |
VSCode 단축키 및 확장 플러그인 (0) | 2021.10.14 |