Using GIT Effectively for Data Science Projects

League of Extraordinary Algorithms
League of Extraordinary Algorithms
Public group

Veritas Technologies LLC

2815 Cleveland Avenue · Roseville, MN

How to find us

An employee of Veritas will open the door as you arrive

Location image of event venue


Git introduction - an on hands approach
1. What is Git?
2. Why use it?
3. What is so cool about git compared to other tools
4. Various ways to setup git
5. On hands
- pre requisits
- creating a repository in your own account
- clone it locally to your laptop
- staging, viewing and committing snapshots
- undoing changes
- basic commiting
- branching & pull request

Set up instructions to be able to dive into the hands on part -
1. Install git
a. xcode-select --install
b. /usr/bin/ruby -e "$(curl -fsSL"
brew install git

a. For Redhat/CentOS: yum install git
b. For Debian/Ubuntu: apt-get install git


Use the "Git Bash" program instead of "Command Prompt"

git config --global core.editor '"C:/Program Files (x86)/Notepad++/notepad++.exe"'

2. Verify Installation
git --version

git version[masked] (Apple Git-117)

Run the following:
git config --global "Firstname Lastname"
git config --global "Email ID"

To verify, run:
git config --list

------- Doe[masked]

3. Install gogs (local git server, I am assuming not everyone will have git enterprise)

a. Install docker (I assume this is already done as there was a docker meetup before)

b. Save the contents between the lines below to this file: ~/Downloads/docker-compose-gogs.yaml:
restart: unless-stopped
image: gogs/gogs
- ~/Downloads/gogs:/data
- "2222:22"
- "3000:3000"
To verify installation, run:
docker-compose -f ~/Downloads/docker-compose-gogs.yaml up

To Stop gogs, run:
docker-compose -f ~/Downloads/docker-compose-gogs.yaml down

Next steps will be done during meetup.

4. Create SSH keypair to interact with git

Your existing keys will be overwritten. Before proceeding, check for existing keys as follows:

ls -al ~/.ssh/

if you see these two files, you already have a key pair:
-rw------- 1 user group 1679 Aug[masked] id_rsa
-rw-r--r-- 1 user group 405 Aug[masked]

Make sure "id_rsa" has 600 permission.

If not, follow instraction from here:

Presenter: Mr. Debasis Aich, Data Engineer at Target