Connect Gitlab with VS Code

Summary

  • Use the gitlab workflow extension and add an account to it.
  • Before that, create the full access token in gitlab.


1st Step

Creating SSH keys

You need to create SSH key pair and you need to configure that public key in the gitLab



You can create the SSH keys in your machine, In linux you can create it by


SSh-keygen


Default it will generate an RSA key pair.



By default the shh key will stored in .ssh directory


First one is the private key.

Second one you see is the public key.


Private key you can not share is in your local system.

.

So we need to copay the public key and update it in gitlab.


 



2 Step

Adding and configuration of GitLabWorkFlow Extention into VSCode


Two ways to do it



Press shift command p open menu and select Add Account and ad git lab

Add your host url and token.




All done!!


Lets check all the available command in gitlab


Press shift command p open menu 


No comments:

Post a Comment