1. Install GitHub
download GitHub 's version of Windows from the https://git-scm.com/website and always choose to install it by default
after the installation is complete, the desktop right mouse button appears:
2. Register GitHub Personal Account
Sign up for your GitHub account at https://github.com
3. Generate SSH Public key
(1), $ ssh-keygen-t rsa-c "[Email protected]"
# Creates a new SSH key using the Providedemail generating public/private RSA key pair.
Enterfile in which to save the key (/home/you/.ssh/id_rsa):
(2), two files are produced under C:\Documents and settings\administrator\ :id_rsa and id_ Rsa.pub two files, use a text editor to open the latter, copy the contents
(3), add SSH public key to GitHub: on the github.com website to SSH Key Management page, add a new public key, just take a name, paste the contents of the copy.
4. Create a new repository on the Web page
5 . Clone the project on the webpage to local and make changes
(1), first create your own local warehouse folder, and execute the GIT init under the target folder
(2), the repository on the Clone Web page to Local: $git clone + The HTTPS address in the repository created
at this point, you can see the warehouses created on our web page in the local folder.
6. Add user.name and user.email
In Git bash, enter
$git config--global user.name "your name"
$git config--global user.email "your Emali"
7, go to the local warehouse folder, modify the version and upload
(1), first use the CD command to add to the local warehouse folder, corresponding to make changes
Then execute $git Add. Upload the local project to GitHub;
Then execute git commit-m "Changes log" submitted to the local version control Library, the quotation marks are your instructions for this submission.
(2), finally enter Git push-u Origin master to submit your local repository to your GitHub account, you will be asked to enter your GitHub account number and password.
8, refresh the Web warehouse, you can see the change
GitHub installation and configuration under Windows