2. St. Clair College
Git for
Data Analyst
Agenda
● Introduction
● Principles of Git
● Getting Started with Git
● Free Resources for Students
● Q & A Session
3. Hi, I’m Troy
Data Analyst & Full Stack Developer
Multifaceted career in IT ranges from traditional
corporate IT to leading a team at an interactive design
studio focused on AR/VR, Mobile and Web Development.
I’ve also worked on innovative projects ranging from
e-commerce to healthcare and tourism. I’m always
looking for new, challenging and exciting projects that
make an impact.
Some of my clients include Anansi Tales Marketing,
dLinkTT (Linkages, USAID, FHI360 and PEPFAR) and The
Caricom Secretariat with The European Union.
St. Clair College
4. Introduction
● What is Git / Version Control?
● Why is version control a necessary
tools for Data Analyst?
St. Clair College
Git for
Data Analyst
5. What is Git / Version Control?
It is a free and open-source version control
system used to handle small to very large
projects efficiently. Git is used to tracking
changes in the source code, enabling multiple
developers to work together on non-linear
development.
Git allow us to collaborate with large teams, each
person working on different aspect of the
project. The code can then be merged without
manually reading through every file to compare
changes.
St. Clair College
6. Why is version control a
necessary tool for Data Analyst?
● Git allows you to work within a team
● Eliminates that need for manual
comparing code and assets
● Ensures everyone has access to the
latest version of the project
● Provides a history of the project for all
team members
● Is an excellent backup in the event of
hardware failure
St. Clair College
7. Principles of Git
● How Git Works
● Git Terms
● Git Commands
St. Clair College
Git for
Data Analyst
8. How Git Works
John’s Branch
Master Branch
Sara’s Branch
Cloud
Repo
John’s Local
Machine
Sara’s Local
Machine
Sara’s New Features
Testing Branch
St. Clair College
9. Git Terms
Remote repository
A directory of files tracked by a version control software on a server,
usually accessed via the internet. The repository contains all the
history of committed changes to the project.
Branch
A set of deviations from a particular state of the repository. Branches
can be used to test new features without affecting the working
codebase.
St. Clair College
10. Git Commands
St. Clair College
Command Action
git clone <URL_TO_REPO> Clones an existing repository to a directory on your local machine
git add . Stages all the altered files to be committed
git commit -m "<some message>" Commits that files to Git with a message.
Tip: Using descriptive messages help you and others identify the relevance of the commit.
git push Pushing sends the local changes back to the cloud
git pull Pull allows you to retrieve the latest version from the cloud
11. Getting started with Git
● Installing Git on your machine
● Setting up your GitHub account
● Creating your first repository
● Cloning your repository
● Making a change & pushing your change
St. Clair College
Git for
Data Analyst
12. Installing Git on your local machine
St. Clair College
1. Visit the following URL:
https://git-scm.com/download/win
2. Download Git for Windows
3. Install Git
1. Install homebrew:
https://brew.sh/
2. Run the following command:
brew install git
13. Setting up your Github account
St. Clair College
1. Go to www.github.com
2. Click Sign Up
3. Complete the signup process
https://github.com/troyStClair/gdscStClairGitPresentation.git
14. Configure Github locally
St. Clair College
Command Action
git config --global user.name “Your Name” This configures the name that would appear
when changes are committed
git config —-global user.name Verifies that your name is correctly saved
git config —-global user.email “name@email.com” This configures the email address that would be
associated with your username
git config —-global user.email Verifies that your email address is correctly
saved
15. Creating your repository
St. Clair College
1. Go to www.github.com
2. Click Sign In
3. Click New in the left menu
4. Name your repository
5. Select Public
6. Click Create repository
16. Cloning your repository
St. Clair College
1. Find your repository in the left menu
2. Click in your repository
3. Click Code
4. Ensure that HTTPS is selected
5. Copy the URL
6. Go to your terminal(macOS) or CMD(Windows)
17. Cloning your repository
St. Clair College
1. Go to your terminal(macOS) or CMD(Windows)
2. Navigate to your My Documents
3. Enter mkdir <REPO NAME>
4. Enter cd <REPO NAME>
5. Enter git clone <URL>
18. Making a change and pushing to your repository
St. Clair College
1. Add any Jupyter Notebook file to the folder
2. Go to your terminal(macOS) or CMD(Windows)
3. Enter git add .
4. Enter git commit -m ‘first commit’
5. Enter git push
6. Check your github repository to see the commit
19. Free Resources for Students
● Github for Students
● GitKraken for Students
● Git Client - GitHub Desktop
● Git Client - Gitkraken
● Git Documentation
● Git Extension for Visual Studio Code
St. Clair College
Git for
Data Analyst