[Turn] GitHub installation and configuration in the windows

    




 

 

 
original       

GitHub installation and configuration in the windows

                                         

1, the installation GitHub

      From https://git-scm.com/ download windows version github website, and has been selected by default installation

      After the installation is complete, right-click the desktop will appear:

2, registration github personal account

 

  In https://github.com register their github account

3, the public key generated SSH

 

(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), in C: generating two files \ Documents and Settings \ Administrator \ under: id_rsa and id_rsa.pub two files, using a text editor to open the latter, to copy the contents inside

(3), add SSH public key to github: github.com on site to ssh key management page, add a new public key, a name casually, just copy and paste the contents of the content.

4. Create a new page in the repository

5, the project to a local clone on the page, and make changes

(1), first to create your own local repository folder, and executed under the target folder $ git init

(2), the warehouse on the web page to a local clone: ​​$ git clone + repository created in the https address

      At this point you can see the warehouse created on our website in the local folder.

6, add user.name and user.email

Enter the Git bash in

$git config --global user.name "your name"

$git config --global user.email "your emali"

7, into the local repository folder, and upload the modified version

(1), the first to use the cd command added to the next local repository folder, make the corresponding modifications

And then do $ git add local projects will be uploaded to GitHub.;

Then execute git commit -m "changes log"   submitted to the local version control repository, quotes inside your information to explain this submission.

(2), and finally enter the git push -u origin master will be submitted to your local repository to your github account, this time you will be asked to enter your github account and password.

8, warehouse refresh the page, you can see the changes

Guess you like

Origin www.cnblogs.com/zhangbing12304/p/10974690.html