Well, this is an idea that came to my mind a couple days ago and I could figured out how to do it (and even if it would be possible).
My idea would displaying a different branch when you access the website with a different address. For example :
mywebsite.com would use the master branch
dev.mywebsite.com would use another one
So, here it is. Don't know if it would be possible, but, who knows :)