create folder and file on command use git repository code example
Example: how to make a folder into git repo
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master