어떻게 새 브랜치를 만들고 커밋 할 때 그래프에서 브랜치가 보이지 않습니다.Git 그래프가 브랜치를 표시하지 않습니다.
git init
git add .
git commit -a
... other commits in here
git checkout -b mynewbranch
git add .
git commit -a
git checkout master
git merge mynewbranch
git add .
git commit -a
이것은 내가 자식 로그 --graph에게
* 47926e1 This is a commit back on master
\
* f3dc827 How come i am not seeing a branch in my tree
* 1cd3018 This should be on my new branch
/
* 47f3716 This is my third commit
* 878b018 This is my second commit
* 2db9f83 Initial commit
을 수행 할 때 내 마음에 볼 것으로 예상 것입니다하지만이 메시지가 표시되는 : 여기
내가 뭐하는 거지 코드입니다 :* 47926e1 This is a commit back on master
* f3dc827 How come i am not seeing a branch in my tree
* 1cd3018 This should be on my new branch
* 47f3716 This is my third commit
* 878b018 This is my second commit
* 2db9f83 Initial commit
뭔가 이해가되지 않습니까?
다른 커밋이 없으므로 git에서 브랜치를 빨리 감기하고 있습니다. git merge --no-ff mynewbranch를 사용하여 해당 지점에서 병합으로 기록하십시오. – Doon
이것이 가장 좋은 방법입니까, 아니면 그것이 분리 된 지점이라는 것을 미적으로 보여주는 것입니까? –
그것은 당신에게 달렸으며, 어떻게 나무를보고 싶습니까. 그 일이 그 지부에서 행해졌다는 것을 보여주는 것이 중요하다면. 이 작업을 1 톤 수행하면 커밋 히스토리가 분기로 흩어져서 따르기가 어려울 수 있습니다. 가장 좋은 방법은 일반적으로 작업중인 팀과 git을 사용하는 방법에 따라 정의됩니다. – Doon