Before uploading
1 existing GitHub Account
2 have a project source code file
3 Generate an SSH key, how to add an SSH key, refer to: https://help.github.com/articles/generating-ssh-keys/
4 Installing Git for Windows (I'm working under Windows)
Start uploading
1 Put a warehouse repository on Gthub and get an SSH address git@github.com:ddfdsf/dsafds.git
2 Go to the source folder and right click on Git bash here (provided that you have successfully installed Git for Windows)
3 Open a Bash window with the current path already in the path you just clicked (pwd for viewing)
4 Type the following name
GIT init//create a. Git folder
git remote add origin [email protected]:d Dfdsf/dsafds.git
git Add.
Git commit//appear a VI, add some commit information, or directly with the parameter-M "Commit mesage!"
Git push-u Origin Master
Upload successful
Quickly upload items to GitHub