On your remote machine, create a new directory and start a new git repository. On your local machine, or wherever you have the files, start a git repository, add the files you need, and commit them. Now you have your files under revision control, but only locally, which is bad if your hard drive breaks or if you work from more than one machine. So add the repository on the remote machine as another remote directory and push to it. To get the files on another machine, do