1. Register your account on the GitHub website https://github.com/
2. Download git for window https://git-for-windows.github.io/
3. After the GIT installation, there are two more items in the right-click option: Git GUI here and git Bash here: The former is the operation of the graphical interface, the latter is the command-line operation, generally with the latter.
Create a new folder in your own working directory.
Right-click to open git Bash here,
(1) Generate key
On the command line, enter ssh-keygen -t RSA -C "[email protected]"
In this case, a. ssh file is generated under the user directory, there are two files, open the Id_rsa.pub file, inside is key, all copied.
(2) Open GitHub website, login, on the personal page select setting enter SSH and GPG key option. On the right, click New SSH key.
Write the title casually, paste the key you just copied into, submit. The bottom right is generated.
In order to verify success, enter it under GIT bash:
- T [email protected]. com
If it is the first time will prompt whether continue, enter Yes will see: You ' ve successfully authenticated, but GitHub does not provide shell access. This means that you have successfully connected to GitHub.
4. Use of GitHub
Go to GitHub platform, click New Repositories, create a new project (you can also add to an existing project)
After the build, click on the Clipboard icon in the right column to record your project address.
(1) Uploading items to GitHub
Go to the root directory of the project you want to host,
Right-start the git bash command line and enter
git clone previously recorded address copied to the back, enter
Enter "CD project folder name" and go to the project directory
Input
git Add.
Add changes to the version manager
Input
git commit-m "Changes log"
Submitted to the local version control repository,
The quotation marks are the information you have about this submission.
Last input
Git push-u Origin Master
Submit your local repository to your GitHub account. I'm not making any changes here, so I'm going to show everything up to date.
Go back to the project page in your github.com.
The files inside are already changed,
At this point, the GitHub project has been successfully updated.
Reference: Http://jingyan.baidu.com/article/f7ff0bfc7181492e27bb1360.html & http://www.runoob.com/w3cnote/git-guide.html
Basic use of GitHub