git - Need to prevent merge of branch into HEAD -


i have seen variations of question haven't found answer. trying find way prevent merging of specific local branch (dev) whatever current head branch is.

so, dev(head) can merged into. however, dev cannot merge branch-x(head). open different recommendations. please ask questions of me. in advance.


Comments