일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- JavaScript Runtime
- Splice
- indexof
- local scope
- dot notation
- supertest
- Bracket Notation
- 코드스테이츠 1일차
- 슈도코드
- immutable
- javascript 기초
- version control system
- TIL
- foreach
- for of
- 코플릿
- 코딩게임
- 호이스팅
- HTML 태그 모음
- package.json
- for in
- Jest
- 2번째 페어
- npm 설치
- node 설치
- global scope
- includes
- testbuilder
- nvm 설치
- 스프린트 리뷰
- Today
- Total
Honey-Programming
Git 본문
1. Version Control System 장점
-
각 각의 버전을 저장
-
이전의 버전으로 되돌리기
-
어떠한 변경사항이 있었는지 확인 가능
-
여러사람이 함께 작업할 때에 유용함
-
백업이 가능
2. Git Workflow (일의 흐름)
-
Staging Area - Version Control System에의거해 받아 Staging Area 올리는과정
-
Repository - 기록과 작업 흐름 모든걸 전부 포함하는 개념
[1] git add [file_name.html] // Staging Area에 파일을 추가하는 명령어
Ex) git add index.html
[2] git commit [option] [message] // commit = making snapshot
Ex) git commit -m "Add headline to index page"
[3] branching(가지)
master branch - 사용자에게 배포해야 될 프로그램(소스코드)이 들어있음
develop branch - 개발중인 버전에 소스코드가 들어있음
기능 추가시 충돌/버그 수정 충분한 테스트를 하고난뒤에 master branch에 merge
feature branch - 프로그램(소스코드)의 하나 하나의 기능
[4] merging(branch(가지)를 합병)
위로 올라갈수록 안정성이 보장됨
3. fork, clone, pull, push
-
fork - repository를 전부 복사해서 내 계정으로 복사
-
clone - 내 repository에 가져온 것들을 내 컴퓨터에 복제
Ex) https://github.com/facebook/react 들어가서
오른쪽 중단에 Fork 버튼 누른다음 내 repository로 전부 가져옴
clone 버튼을 누르면 다운로드 함
-
push - local repositoy 변경사항을 remote repository 적용
내 컴퓨터에서 변경한 내용(코딩) 다른 사람 컴퓨터에 적용
git push [대상] [branch_name]
Ex) git push orgin master
-
pull - remote repository 변경사항을 local repository 적용
다른 사람 컴퓨터에서 변경한 내용(코딩) 내 컴퓨터에 적용
git pull [대상] [branch_name]
Ex) git pull orgin master
-
git pull upstream master // upstream repository를 등록해야함
Ex) git pull www.naver.com master
4. Git 이해도