/
Source control for Data Conversion

Source control for Data Conversion

TL;DR

  1. Install Git (if not already installed)

  2. Configure Git Username and Email Address

  3. Error? SSL certificate problem: self-signed certificate in certificate chain

  4. Install Visual Studio (VS) Code (if not already installed)

  5. Open a cloned repository in VS Code

  6. OPTIONAL Install extensions

 

 

Data Conversion Working Session - March 13, 2024 @ 10 AM

Recording of Working Session:

Data Conversion working sessions-20240313_153121-Meeting Recording.mp4

 


Git

image-20241009-132559.png

Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Website:
https://git-scm.com


Visual Studio Code

Learning to code is intimidating, so set yourself up for success with a tool built for you. Visual Studio Code is a free coding editor that helps you start coding quickly. Use it to code in any programming language, without switching editors. Visual Studio Code has support for many languages, including Python, Java, C++, JavaScript, and more.

Website:
https://code.visualstudio.com

Extensions Marketplace:
https://marketplace.visualstudio.com/VSCode

Articles

Why VS Code?

Using Git source control in VS Code

Introduction to Git in VS Code

Video includes installing VS Code, installing Git, using Git Bash to set user.name and user.email, and connecting VS Code to an Azure DevOps repository.

 

image-20240313-181923.png
Click View, Command Palette to open the command palette to enhance your VS Code experience. Or use the Ctrl+Shift+P keyboard shortcut on Windows.
image-20240313-182252.png
Example: Change selected text to uppercase.
image-20240313-182337.png

Visual Studio

Website:
https://visualstudio.microsoft.com/

Visual Studio Community 2019
Download Community 2019

SSIS Articles

Azure DevOps, SSIS, and Git Part 0 – Getting Started

Branching and Merging Strategy in Git for SSIS Projects


Opening a cloned repository from Azure directly to VS Code

image-20240313-174108.png
Open your repository from Azure.  On the Files page, you can click the Clone button at the top-right of the page.
image-20240313-174125.png
From the Clone Repository window, you can click the Clone in VS Code button under the IDE section.  This will initiate a connection to VS Code.

Opening a cloned repository from inside VS Code

image-20240313-174305.png
Open your repository from Azure.  On the Files page, you can click the Clone button at the top-right of the page.
image-20240313-174337.png
Copy clone URL to clipboard.
image-20240313-174425.png
Open VS Code application. Open Source Control pane from the left. Click the Clone Repository button.
image-20240313-174651.png
Paste URL for your repository and hit enter.
image-20240313-174837.png
Select a folder on your computer to store the repo and press the Select as Repository Destination button.
image-20240313-174939.png
Success!

Error? SSL certificate problem: self-signed certificate in certificate chain

  1. git config --global http.sslVerify false


Configure Git Username and Email Address

To set your global username/email configuration:

  1. Open the command line.

  2. Set your username:
    git config --global user.name "Your Name"

  3. Set your email address:
    git config --global user.email "Your.Name@catalisgov.com"


Sample VS Code Extensions

Rainbow CSV - Visual Studio Marketplace

Combine Files - Visual Studio Marketplace

Render Line Endings - Visual Studio Marketplace

Git History - Visual Studio Marketplace

Prettier - Code formatter - Visual Studio Marketplace

Related content