Git의 특별함을 느낄수 있는 SVN과 비교되 는 몇 가지 차이점 • 중앙 저장소를 복제하여 로컬 저장소를 갖는다. • 중앙 저장소가 아닌 로컬 저장소에 커밋한다. • 스냅샷으로 관리되는 구조이다. • 브랜치를 쉽게 만들 수 있으며 전환이 빠르다. • 파일 단위가 아닌 데이터를 관리한다. • 빈 디렉토리는 커밋할 수 없다. • Staging - Commit - Push. • 파일의 일부분(내용)만 커밋할 수 있다. • 숫자가 아닌 Hash 문자열로 커밋을 구분한다. • 커밋의 순서를 바꿀 수 있고, 나누거나 합칠 수 있다. • 여러 개의 원격 저장소(중앙 저장소)를 둘 수 있다. • Branch, Tag를 생성할 때 파일을 전부 복제하지 않고 효율 적으로 관리한다.
6.
처음 대하는 마음가짐 대세라고 하는데... 굳이 나한테 필요 있나?! 지금도 SVN 가지고 잘 쓰고 있음...
$ git-flow init Initializedempty Git repository in d:/Projects/git-flow- test/.git/ No branches exist yet. Base branches must be created now. Branch name for production releases: [master] Branch name for "next release" development: [develop] How to name your supporting branch prefixes? Feature branches? [feature/] Release branches? [release/] Hotfix branches? [hotfix/] Support branches? [support/] Version tag prefix? []
30.
$ git flowfeature start addtoken Switched to a new branch 'feature/addtoken' Summary of actions: - A new branch 'feature/addtoken' was created, based on 'develop' - You are now on branch 'feature/addtoken' Now, start committing on your feature. When done, use: git flow feature finish addtoken
31.
$ git flowfeature finish addtoken Switched to branch 'develop' Already up-to-date. Deleted branch feature/addtoken (was 7273049). Summary of actions: - The feature branch 'feature/addtoken' was merged into 'develop' - Feature branch 'feature/addtoken' has been removed - You are now on branch 'develop'