1/6/2024 0 Comments Visual studio code ssh key git![]() ![]() With “commit” we send our code to the cloud storage. This means that the project has 1 change this change can be committed. Once I did that a little “1” appeared in the “Source Control” button. Now make sure your new file is actually “part of the project” I needed to move my sample.tf file to the project folder. ![]() Right-click the Explorer and select “New File”:Īfter creating the actual file I am going to place a comment in there as a quick test and used the short keys CMD + S to save the file locally. Now that we have everything set up we are ready to create and edit some scripts. I suggest clicking around and get yourself familiar with the GUI and the code editor a bit more. When you selected your folder, and click on “open” you will see the following screen. Opening Visual Studio Code for the first time can be overwhelming and confusing about where to start for the first time.īut this blog is here to help you with that. So obviously you will have to install Visual Studio Code first, and this is nothing more than download it and run the install here. And that is where Visual Studio Code comes in. Now the next step is to work with a proper code editor. Opening the cloned project in Visual Studio Code We see that the directory is still empty. I will try to explain this in another blog article. But this is out of scope for this blog article. There is also a way to authenticate with a private/public SSH key, so you don’t have to put in your username and password every time you clone your project. Ihoogendoor-a01:My-Local-Scripts-Directory iwanhoogendoorn$ Ihoogendoor-a01:My-Local-Scripts-Directory iwanhoogendoorn$ ls -lĭrwxr-xr-x 4 iwanhoogendoorn staff 128 Mar 11 20:44 my-sample-project Remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Remote: Counting objects: 100% (3/3), done. Username for ‘': for Enumerating objects: 3, done. Ihoogendoor-a01:My-Local-Scripts-Directory iwanhoogendoorn$ git clone Ihoogendoor-a01:~ iwanhoogendoorn$ cd Downloads/ I have a MacBook Pro with OSX so for me this looked like this: Now we have the URL we can start the clone. So you need to copy the git URL from the GitLab project folder on the website: ![]() Now that we have our project we can “clone” the project locally to our computer. Once your project is created you will see that there is only a README file that we choose to create, but other than that it is empty. You need to fill in some information and when you have done this, just create the project! I created an account and created my first “Project”. So to start with coding scripts apparently “the” way to go is to use Git.ĭale was using to share his scripts repository so I decided to go the same route. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |