Changes in git are (in simple terms) all or nothing. If you want to deploy some changes to one place and some to another, then you probably want to maintain different branches. I'd *really* like to know why you'd want to deploy different code to the live platform than was tested on test, this isn't usually recommended practice!