I want to write a shell script, so that I can schedule a merge between two branches to happen at a specific time. However, since I might be working in another branch when that time is reached, I need it to happen in the background.
So, is there a simple way to merge branch A into branch B, without having to checkout B first?