Git windows installation – GitHub synchronization / vscade source control: git installation operation

Time:2019-12-10

Create a project on GitHub

Log in to GitHub website, click “new repository” in the bottom right corner of GitHub homepage
Git windows installation - GitHub synchronization / vscade source control: git installation operation
  
Finally, click “create repository” to complete the creation of a project on GitHub.
  


Next, operate on git (create key)


One: Download msysgit and install it according to the default options. Git official website download

Default installation until complete

2: under your own project folder, right click to display the GIT bash here option, and click to display
Git windows installation - GitHub synchronization / vscade source control: git installation operation

Three:
(1) configure user name and mailbox

    git config ––global user.name ‘xxxxx’
    git config ––global user.email ‘[email protected]
    
   

Xxxxx means you need to replace your name, and enter it at will
    Representatives of [email protected] need to replace their email address

  

(2) check whether SSH has been generated before

    ls -al ~/.ssh

(3) generate key (public key)

SSH keygen – t RSA – C “XX @ XX. XXX” / / configured mailbox
Then
Press 3 enter

(4) query key
    cat ~/.ssh/id_rsa.pub

Copy key, open GitHub, as shown in the figure below, and click generate key in order

Git windows installation - GitHub synchronization / vscade source control: git installation operation

Git windows installation - GitHub synchronization / vscade source control: git installation operation

Git windows installation - GitHub synchronization / vscade source control: git installation operation
Copy the project address shown in the figure above, which we need to start with git @

Now go back to Git

(5) verify whether the connection is successful
    ssh [email protected]
 
(6) cloning project
    git clone [email protected]:anyAAA/curly-guide.git

After git clone, change the project address to your own

(7) operation completed

Then we can develop it normally in vscode
Git windows installation - GitHub synchronization / vscade source control: git installation operation
Vscode connection has a cache time. You can close the software and reopen it to see the connection completed