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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -