-
branch, merge, rebasegit 2020. 10. 28. 15:58
1. branch 만들기
branch는 특정 커밋에 대한 참조일뿐이다. 따라서 메모리, 디스크 공간에 부담이 되지 않는다.
git branch newImage git checkout newImage; git commit
2. merge
두 별도의 brnach를 합친다.
git merge bugFix git checkout bugFix git merge master
3. rebase
[rebase] git rebase name git checkout name git rebase name
'git' 카테고리의 다른 글
reset, revert (0) 2020.10.28 head이동, 상대참조, 브랜치 옮기기 (0) 2020.10.28