The Git

Jela Nalica
4 min readSep 18, 2020

Creating my first repo.

As part of my Week#4 homework to becoming the next “Miss Data Scientist”, I followed a series of steps in making my first repository or “repo” (which I think is a cool word I might abuse for a while haha). So I followed the instructions and got everything executed as expected.

The problem — I did not understand a thing how and why I did it.

And so, I relearned everything. Bit by bit. From what to how. From Youtube to Freecodecamp.org.

From the video above (in under 8 minutes because I watched it twice), I get to understand what Github is for. Now I know why it is essential for a future Data Scientist.

Then I learned the terminologies and basic commands from here:

It’s very beginner-friendly, and I had fun reading it.

After understanding all these jargons in Github, thus I shall begin creating my first repo.

First, I downloaded the code I made from my Colab homework (.ipynb file).

Then, I log-in to my Github account and created my repo for this homework — “200917_FirstRepo”.

Created a Repository — Achievement Unlock!

Next, I went to the command prompt and use it to clone my Github repo. By the way, to clone a repo means saving the Github repository into a computer local storage and make changes locally.

To do that, I copied the HTTPS URL first.

How to copy the Github repo HTTPS link.

Then in the command prompt, this is what my code looks like to clone the repo.

Type “git clone” then the repository URL.

I have successfully cloned my Github repo but its empty. So next, I add the code I downloaded from my Colab.

To do that, I first copy the code into the folder of the local repo. And then back to the command prompt to add the code into my remote repository.

A Repo Folder in my local storage.
A Series of git commands to add a code into a remote repo.

Finally, I refresh my Github account and see that I’ve successfully added my Colab code into my repository.

My Colab inside my Github repo.

And as recommended from my homework, I also practiced how to clone and fork the existing repo.

To “Fork” simply means copying the repository into your account. And so, I just fork this repository “For-Data-Science-Beginners”.

And this is another repository that I cloned.

And that’s a wrap of the things I learned in my introductory to Github, but this is just the beginning. There’s still more to learn plus I haven’t coded anything useful yet. Just continue following my stories, and let’s see what happens next.

I’m not really sure how to feel about that.

I’ll just dive into it. Deeper, one day at a time.

--

--