This link: https://blog.csdn.net/m0_37725003/article/details/80904824
First you have to register an own GitHub account and register URL: https: //github.com/join
With his later account, you can log in and start creating a new project
Create a new project, fill in the project name, description
Once created, jump to the following page at the red box below to remember, upload the code behind the need to use
Next, we need to download Git, here the best download the latest version of Git, here I attach Git2.6.2 URL to download: https: //git-scm.com/downloads, installation without special needs, has been Next to it, the installation is complete, double-click to open Git Bash
The following screen:
The first step: cd address you put into the project file, my address in D: \ MYFILE \ graduation \ study \ Program project
Step two: Enter git init
As shown below, this means that generate local git management in the current directory of the project (will find more than a .git folder in the current directory)
The third step: Enter the git add.
This is to add all of the files on the project to the repository mean, if you want to add a specific file, simply put. Into this particular file name.
The fourth step input git commit -m "first commit", that you comment on this submission, the contents inside double quotes may be based on individual needs
change.
Here, if the following occurs, you will need to enter their account number or name
Enter your email or name in the above code hints
When will succeed and enter git commit -m "first commit"
The fifth step input git remote add origin https: // url address its own warehouse (above comes) will be associated with the local repository to github,
Enter here the baby is git remote add origin https://github.com/Vivianyuwei/Fabric-defect-classification-based-on-WLD.git
The final step, enter git push -u origin master, which is the code uploaded to github repository of meaning.
After the execution, if not abnormal, it will wait a few seconds, and then let you jump out of a window enter Username and Password, you just input github account login and password on the line.
Here attach a common Git written by someone else wrong solution: http: //blog.163.com/023_dns/blog/static/1187273662013111301046930/
I hope this article can help to you