Git & Branch
$ git branch 현재 branch list 보기 $ git branch [브랜치 이름] 새로운 branch 생성 * : 현재 작업중인 브랜치를 의미 log를 보면 HEAD가 master를 가리키고 있음 (현재 작업중인 디렉터리는 master) master, apple 두 개의 branch가 있는 것을 볼 수 있음 google, apple 브랜치는 현재 'message3'의 commit에서 만들어 졌다 따라서 master, google, apple 브랜치들은, 모두 최신 commit이 'message3'이다 $ git log --oneline 한 줄에 한 commit log만 보여줌 $ git checkout apple 현재 branch에서 다른 branch로 이동할 때 'checkout' 명령어를..
2022.07.04