기본 콘텐츠로 건너뛰기

깃 플로우 전략에 따른 CLI 명령어 정리

깃 플로우 전략은 이해 했다고 치고 코드만 남겨두기

처음 설치

brew install git-flow
cs


초기화

 git flow init        #Git Flow 브랜치 구조(main, develop 등)를 초기화하고 설정.  -d  옵션으로 기본값 사용 추천. 
 git flow init -f     #기존 Git Flow가 있어도 강제 초기화. 
cs


기능 개발(Feature) - develop에서 새로운개발 브랜치 생성 후 머지

git flow feature start <feature-name>         #develop에서 feature/ 브랜치 생성(시작)
git add .  git commit -"작업 내용"            #일반 커밋 작업(개발)
git flow feature publish <feature-name>       #원격 저장소에 푸시해 팀원과 공유(공유)
git flow feature finish <feature-name>        #develop으로 병합 후 feature 브랜치 삭제(완료)
git push origin develop                       #변경사항 원격에 반영(푸시)
cs


릴리즈(Release) - main에 develop 브랜치 머지

git flow release start <version> develop에서 release/  #브랜치 생성 (예: v1.0.0)(시작)
git flow release publish <version>                    #원격에 푸시해 공유(공유)
git flow release finish <version>                     #main과 develop으로 병합, 태그 생성, 브랜치 삭제(완료)
git push origin --tags                                #태그를 원격에 푸시(태그 푸시)
git push origin main  git push origin develop         #병합된 브랜치 푸시(푸시)
cs


긴급 수정(Hotfix) - main에서 핫픽스 브랜치를 생성 후 머지

git flow hotfix start <version>     #main에서 hotfix/ 브랜치 생성 (예: v1.0.1)(시작)
git add .  git commit -"수정 내용"  #버그 수정 커밋(개발)
git flow hotfix publish <version>   #원격 푸시(공유)
git flow hotfix finish <version>    #main과 develop으로 병합, 태그 생성, 브랜치 삭제(완료)
git push origin --tags              #태그 푸시
cs


지원 브랜치(Support)

git flow support start <version> <base-tag>     #main에서 support/ 브랜치 생성 (예: support/v0.9 v0.9.0). 
git flow support publish <version>              #원격 푸시. 
git flow support finish <version>               #main으로 병합 후 삭제 (main에도 태그 추천).
cs








댓글

이 블로그의 인기 게시물

네이버페이 리뷰 API 연동

네이버 페이 리뷰 API 네이버 측에 문의 하면 sandbox용 인증키를 받습니다. AccessLicense, SecretKey 그리고 받은 파일의 4. WSDL을 열어 주시고 Naver_Pay_API_MallService41_WSDL(sandbox)_20140925파일 압축 풀어주세요 그럼 파일이 BaseType.xsd, CheckoutAPI.wsdl, MallServiceMessage.xsd 세개의 파일이 나옵니다. 네이버페이 리뷰 리스트 가져오는 메소드는 getPurchaseReviewList입니다. BaseType.xsd를 켜신 후 MallID로 검색하면 <xs:complexType name="purchaseReview"> 안쪽의 MallID밑에  <xs:element minOccurs="0" name="PurchaseReviewClassType" type="xs:string"/> 추가해주세요 포토 리뷰를 가져오는 파라미터 값을 보내기 위해서 입니다. <xs:element minOccurs="0" name="Content" type="xs:string"/> 이값도 필요합니다 이미지 경로를 가져오기 위해서 입니다. <xs:complexType name="purchaseReview">     <xs:sequence>       <xs:element minOccurs="0" name="CreateYmdt" type="xs:dateTime"/>       <xs:element minOccurs="0" name="MallID" type="xs:string"/>   <xs:element minOccurs="0" nam...

메이븐으로 라이브러리 인식

 간혹 퍼블릭 jar가 아닌 파일이 있는데 그럴때 쓰면 될듯 <dependency> <groupId> SimpleCryptLib </groupId> <artifactId> SimpleCryptLib </artifactId> <version> 1.1.0 </version> <scope> system </scope> <systemPath> ${basedir}/src/main/webapp/WEB-INF/lib/SimpleCryptLib-1.1.0.jar </systemPath> </dependency> version, scope, systemPath는 꼭 작성해야 한다 groupId, artifactId, version은 암거나 해도 되는거 같음 최근(2021.05.04)스프링 부트    < dependency > < groupId > NiceID </ groupId > < artifactId > NiceID </ artifactId > < version > 1.0 </ version > < scope > system </ scope > < systemPath > ${basedir}/src/main/resources/lib/NiceID.jar </ systemPath > </ dependency > 이걸 추가해주는것도 필요할지도..?? < build > < plugins > < plugin > < groupId > org.springframework.boot </ groupId > < artifactId > spring-bo...

mac 맥 맥북 Brew 완전 삭제

맥북에서 Brew 초기화 Brew를 써서 h2를 쓰려고 하는데 brew install h2가 안되서 이리 저리 알아보다가 완전 삭제 후 다시 설치 하니까 되서 그 방법을 남겨놈 1. 터미널에 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" 입력후 y랑 뭐 비번.. 2. /usr/local 폴더에서 Homebrew 폴더 삭제 rm -rf Homebrew/ 권한설정으로 잘.....삭제하고 3. 다시 설치 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 좀 오래걸리니까 기다려야한다는걸 배움... 출처.... https://discourse.brew.sh/t/error-no-formulae-found-in-taps/8331/9