Thank you all for the responses. I decided to buy a Raspberry Pi, I think it is mostly what I want.
But I will go step by step. First of all I will do a downloader server, then git server and so on, and I will stop when the Raspberry Pi can't go on.