git - A branch in a github repo showing as not-merged -
suppose i've master , feature branch.
suppose i've made few commits in feature branch , no commits in master.
now when checkout master , issue command
git merge --squash feature
and remove branch using
git branch -d feature
it asks me use -d remove it, why ? hasn't branch been merged master ? if has been merged, why ask force delete branch ?
i think 1 reason squash stages commits of feature branch master , have manually a
git commit -m"merged feature branch"
so --squash merge not generate new commit recursive merge, nor fast forward merge, think git internally checks ref-id's , thats why reports feature has not been merged master cannot see commits of feature branch on masters history.
Comments
Post a Comment