When u hit the brakes u produce a negative acceleration which means u accelerate in the direction opposite to which u were moving.
In this case the acceleration would be forwards (since u were rolling backwards) or uphill depending how u want to formulate it ;)