git merge option : no-ff (no fast-forward)
HappyCoding/git

git merge option : no-ff (no fast-forward)

 

feature-c라는 branch를 만들고 commit을 했다.

그리고 master로 가서 --no fast foward merge 한다고 이야기함.

 

git merge --no-ff feature-c

no fast foward merge하니, merge branch 'feature-c' 라고 commit한 것 보여준다.

 

git branch -d feature-c    # emrge 완료 된다면, merge된 branch feature-c를 삭제해줘야함.

 

feature-c branch 삭제되어서 전혀 확인할 수 없지만,

histroy 자체 볼 때 feature-c라는 branch 있었고 거기에 있었던 commit이 master branch에 merge 되었구나 알 수 있다.

'HappyCoding > git' 카테고리의 다른 글

vscode에서 gitlab사용하기  (0) 2021.06.24
three-way merges  (0) 2021.05.02
fast-forward merges  (0) 2021.05.02
git branch 사용  (0) 2021.05.01
git tag  (0) 2021.05.01