I'm setting up a new project, and I am getting into doing local development, then I want to upload all the changes to the master server. Basically, I'm wondering, do I need to install git on my local machine, and the master server, and then use something like BitBucket to host the code? So I can pull and push from the BitBucket to my LOCAL machine, and then on my production server, I can pull the code after all the changes are committed? Is this the best way of doing this?
Or, should I make it so I pull from the production server, and push directly to the production server? Whats the best way to do this stuff?