상세 컨텐츠

본문 제목

[Git] Flow 수정, 초기화

Operating System (OS) & Network & VCS/Git

by 찌니씨 2022. 10. 7. 17:48

본문

git

 

 문제점이 발생했을 때

 

$ git flow init
Fatal: Working tree contains unstaged changes. Aborting.

 

해당 메시지가 뜨면서 초기화가 되지 않는 경우.

git flow는 현재 프로젝트 파일에서 변경된 파일이 없는 상태여야 한다

그러므로 git stash 혹은 작업 중인 파일을 모두 commit, push 한 상태에서 작업 진행을 하도록 한다.

 

다시 깔고 싶을 때

./git
./gitignore
./idea/git_toolbox_prj.xml //IntelliJ에서 git tollbox Plug-in을 사용한다면
./vcs.xml //git 연결 정보가 들어있다

위의 파일들을 삭제하고 git을 다시 인증하면 된다.

굳이... 비추 ;;

 

❗ flow 브런치명을 수정하고 싶을 때

(제일 만만)

 

./git/config
[gitflow "branch"]
    master = master
    develop = development/current
[gitflow "prefix"]
    feature = feature/
    release = release/
    hotfix = hotfix/
    versiontag = 0.1
    support = support/

 

 git flow 초기화

이게 정석이 아닐까;;

$ git flow -f

 

git-flow-reset1
git-flow-reset2

Feature branches?
Bugfix branches?
Release branches?
Hotfix branches?
Support branches?
Version tag prefix?

등은 입력하지 않고 enter를 치면 default로 설정된다

후에 config 파일로 (바로 위 항목 참고) 수정 가능하니 넘어가도 됨

'Operating System (OS) & Network & VCS > Git' 카테고리의 다른 글

[Git] Commit tamplate file  (0) 2022.10.12
[Git] Cherry-pick  (0) 2022.10.11
[Git] Merge 되돌리기  (0) 2022.10.11
[Git] Branch 전략 (Git Flow)  (0) 2022.10.07
[Git] commit, push, merge  (0) 2022.10.07

관련글 더보기

댓글 영역