An easier way is to simply copy and paste the files into GitHub.
If you still wish to connect to a repo via command line, check out these steps: