일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- firebase id 자동
- commonjs와 ecmascript modules(esm)
- Learning React
- 인터넷 거버넌스
- vue3 drag and drop
- vuedraggable
- 참조형 default
- d3 지도 타입스크립트
- pm2 버전 충돌
- 화살표 함수 중괄호
- vue composable 함수
- in-memory pm2 is out-of-date
- d3 지도 툴팁
- 함수형 프로그래밍
- d3 지도 확대/축소
- nuxt universal rendering
- ecmascript modules(esm)
- reflow
- pm2 업데이트 에러
- cloud firestore id auto increment
- component is already mounted please use $fetch instead.
- repaint
- vue draggable 차트 안나옴
- 화살표 함수 {}
- d3 지도
- vue 컴포저블 함수
- ToDo
- $fetch
- 참조형 props의 default
- git
- Today
- Total
빵 입니다.
Git 작업 흐름 본문
Working directory => Index (Stage) => Local repository => Remote repository (HEAD)
- add
Working directory ===> Index (Stage) - commit
Index (Stage) ===> Local repository - push
Local repository ===> Remote repository (HEAD)
1. add
원격 저장소에 최종적으로 반영할 소스들을 선별해두는 가상의 공간
파일을 Stage에 추가 (add)
Working directory ===> Index (Stage)
$ git add <파일 이름>
$ git add *
===> 이후 “staging 상태” 라고 한다.
2. commit
저장소에 변경 사항 기록
staging area에 tracked 된 파일들을 저장소에 저장
Index (Stage) ===> Local repository
$ git commit -m "이번 확정본에 대한 설명"
===> 변경된 파일이 HEAD에 반영된다.
===> 원격 저장소에는 아직 반영이 안 됨
Working directory ===> ===> Local repository
$ git commit -a -m "이번 확정본에 대한 설명"
===> staging에 추가(add)하고, local repository에 커밋까지
===> -a 매개변수는 새로운 파일이나 추적하지 않은 파일을 추가하지 않으며, 기존에 추적한 파일만 커밋한다.
3. push
관련 객체와 함께 원격 참조를 업데이트
원격 저장소와 상호 작용하는 데 사용
원격 저장소에 push 한다.
Local repository ===> Remote repository (HEAD)
$ git push origin master
🫰🏻 참고 🫰🏻
https://daeguowl.tistory.com/117
https://mylko72.gitbooks.io/git/content/commit/commit.html
https://mylko72.gitbooks.io/git/content/workflow.html
'Git' 카테고리의 다른 글
Stash (하던 작업 임시로 저장하기) (0) | 2024.04.25 |
---|---|
Git 기본 명령어 (0) | 2022.07.22 |