There is no definitive answer, but generally speaking, it is better to leave your car in gear when parked on a hill. This will help it stay in place while you walk or bike up the hill, and it will also help it start up more quickly when you need to get up a hill.