프론트엔드 개발자가 될거야./git
-
git rebase프론트엔드 개발자가 될거야./git 2022. 8. 14. 21:38
Merge 와의 공통점 → 브랜치를 합친다! Merge 와의 차이점 → Merge보다 깨끗한 commit history를 만든다! → Merge와는 다르게 선형적으로 그려진다! 어떻게 commit history를 깨끗하게 만들까? Rebase는 현재 브랜치의 베이스를 재설정해서 합치겠다는 것이다. → base가 바뀔 commit들을 복사해서 연이어 붙이는 것이다! 요약. Merge보다 깨끗한 commit history를 만든다! → Merge와는 다르게 선형적으로 그려진다! 현재 브랜치의 base를 바꾸겠다는 것이다! : 생성된 커밋들은 새롭게 복사되어 base가 변경된다. Rebase 주의점! 복잡한 conflict! 커밋을 너무 쌓아두면 안된다!! 더이상 merge 하지마라. commit도 하지말라!..
-
git clone시 git flow이해하기프론트엔드 개발자가 될거야./git 2022. 7. 10. 14:55
git에서 clone을 받아 내 local branch로 가져오는 실습을 진행했다. git clone의 flow는 위처럼 구성되어 있다. 이 flow는 내가 취직을 하고 프로젝트를 할 때 실제 해야하는 과정이니 잘 공부해두어야한다. git clone flow 정리 terminal에서 cd Desktop로 이동 -> git clone 주소 // 주소는 아래처럼 HTTPS 주소를 가져오면 된다. // 이렇게 하면 해당 git에서 파일들을 가져올 수 있고 이 주소가 자연스레 Remote master가 된다. -> cd 생성된 파일이름 // 주소를 clone하면 파일을 가져온다고 했다. 이제 그 생성된 파일로 이동하자. -> 생성된 파일을 vsc에서 열고 잘 들어왔는지 확인 -> vsc terminal에서 마저..
-
Git 명령어 정리프론트엔드 개발자가 될거야./git 2022. 6. 13. 16:40
6월 6일 월요일, 6월 7일 화요일에는 git과 친해지는 시간을 가지려고 한다. Git과 Github가 같다고 생각할 수도 있는데 Git = 버전관리 툴 Github = Git에서 관리한 작업들이 저장되는 곳 이렇듯 Git과 Github는 다르다. 그렇다면 Git으로 버전관리를 어떻게 해야할까? 현재 프로젝트에서 버전관리 시작 git init 사용자 정보로 깃 구성하기 git config --global core autocrlf input 지금 이 맥북에서 버전관리 할거다. git config --global user.name "깃아이디" (ex. wjddms4107) git config --global user.email "깃이메일" (ex.wjddms4107@naver.com) 버전관리 등록(모든파..