After you have your own account, you can log in and start creating new projects.
Create a new project and fill in the project name and description.
Under the new warehouse, when there is no code, you will be prompted to synchronize the operation code to git in three ways.
I use the first command operation mode:
In addition, you need to download Git first. You'd better download the latest version of Git here. If there are no special requirements during installation, go directly to the next step. After the installation is complete, double-click to open Git Bash.
Step 1: Put the CD into the address where the project files are stored. I put it here: E:\regtest.
Step 2: Enter git init.
Step 3: Enter git add. This means adding all files in the project to the repository. If you want to add a specific file, just change it. To this specific file name.
I did use "."to submit all the information under the whole folder.
Step 4, enter gitcommit-m "first commit", which means you can modify the contents in double quotation marks according to your personal needs.
If the following contents appear here, you need to enter your account number or name.
Please enter your email address or name and the above code.
Enter gitcommit-m "first commit" again and it will be successful.
Step 5, enter git remote add origin https://yourownwarehouse url address (this URL can be found in the warehouse page created in your git, which is the URL in the top input column) to associate the local warehouse with github.
Finally, enter git push -u origin master, which means uploading the code to github warehouse.
After the execution, if there is no exception, it will wait for a few seconds, and then a window will pop up for you to enter your user name and password. You just need to enter github's login account and password.