github - Git track how a commit got into a branch -


is there way track how commit got branch? i'm working git , github enterprise.

a couple of days ago, came across situation commit appears have gotten feature branch ("f") our first staging branch ("s"), expected (my colleagure merged pr that). have secondary staging branch before our master ("t"), , somehow commit in question got t without pull request f. can assume somehow, contrary our usual workflow, code got merged s t, through other feature branch. i'd trace path commit in question took.

i fired gitk try figure out, problem have find network diagram inscrutable. there way track path of commit, either using other tool gitk, or can educate me (or point me resource) understand gitk's diagram?

you can use --ancestry-path simplify gitk diagram.

$ gitk offending_commit..head --ancestry-path

this show commits descendents of commit offending_commit , antecessors of head of current branch (you can use 2 commits separated ..).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -