Put your code in a folder, right-click inside the folder, select Git bash here, and open the bash interface.
initialization
Git init
add files
git add .
If not logged in
git config --global user.email "[邮箱]"
git config --global user.name "[用户名]"
add notes
git commit -m "That's it."
Add warehouse address
git remote add origin [仓库地址]
upload files
git push -u origin master