-
First get to the existing directory
$ cd my/folder/ -
Now start a new git repository
$ git init -
Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
$ vim .gitignore -
When ready create the first commit on the server