While trying to figure out how to do this I found lots of bad info, info that lead to nothing but issues and bugs. I have stay so busy and do so many things I can never remember how to do anything. That is basically why this ENTIRE blog exists, my shit memory.
I found this article on DigitalOcean that works properly.
Step 1 create a repository on Github, even if the code you want to put in a repo exists, as long as it is not currently in any repo at all.
Step 2 navigate to the folder that contains the code that you want to push to the new Git/Github repo and run git init
Step 3 add the files with git add -A or git add .
Step 4 commit the files
Step 5 add the remote git origin server
Step 6 push to the remote git origin server
Or just use this script.