Is it advisable to put entire source of my thesis up on GitHub? I've been using git for a while and now GitHub. I'm starting to write a master's thesis. Would it be a good idea to upload all the files to online public repositories? Does anyone have any experience with this?

EDIT: Thanks for all the answers. I consulted with my adviser about this, and he said that latex sources were ok, as the document will be open access anyway. My source code however was not, primarily because the collaboration already has a protected wiki for such things.
I'm told for your field that the answer might be yes, because you're slightly less threatened in terms of being scooped than most, with physics (apparently) going largely by who submits first.

I would be extremely cautious publishing the source of my thesis in its entirety on a public repository. I'm all for repeatable science and open access, but the public should only have access to your code when this condition is met:

You have no further use of the exclusive access to your code. All the questions you've programmed have been answered, the papers and presentations that emerge from them are in press, and at this point, it is a question of reproducible research.

Once that's true, sure. Until that point? You're running the profound risk of your research being stolen.