CS/Git
Git 시작하기(mac)
young_3060
2021. 7. 7. 22:31
728x90
기본 맥의 Terminal을 이용해도 되지만 iTerm을 이용하는게 나을것 같아서 선택하였다.
git관리 차원에서 iTerm을 좀 더 사용자화 하기 위하여 현재 branch를 보여주는 oh-my-zsh 테마를 적용하기로 했다.
<방법>
1. 기본 shell z-shell(zsh)로 변경하기 -> 확인방법: echo $SHELL (없다면 brew로 설치)
->변경방법 : chsh -s zsh주소
2. brew로 wget설치하면 끝!
<git의 workflow>
[local]
working directory(Untracked/Tracked-unmodified&modified) <-> staging area(modified file만 존재가능) -commit-> .git directory --checkout-->working directory
[remote]-a.k.a github
push와 pull이용
<유용한 단축키>
cmd+k : terminal 깔끔하게 만들기
-h : help -> 자주보고 익히자
-s : simple하게 보여줌
<< history에는 세부화해서 저장하는것이 좋음 >> -의미있는 내용들만 세부화하기
++commit할때는 고친내용만 넣는것이 기본!
728x90