Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

How to Git

Like Save as... but more better

Some Background

I was first introduced to git in an undergraduate digital signals course, in all honesty I didn’t think much of it at the time and missed the point of what was being demonstrated. After that most of the time I just went to the github repo for the course to download the assignment for the week manually, and never really thought about git again. I knew it existed but didn’t really understand what it was

A few years later when starting my first job I was reintroduced to git. I remember knowing that it was going to be something I was going to use every day but thinking that it was going to be hugely complicated and technically complex.
Little did I know it would change my life forever and become one of the things I things I love most about writing code

What Is Git

in very loose simple terms Git is like saving your word document or your excel files it stores versions

fetch pull [to you local laptop] push [to the “cloud”/remote] [create] branch

stage + commit

lets say you have a new project

A Tale Of Many Folders

Imagine you have a project/thing/codebase/collection of files

will call this the top level folder

now imagine that in this folder we have a box/container and in this box you have a bunch of files

lets say we wnat to add to this box (like add another file) and lets say we have to do this by pressing

The Remote Cloud Far Far Away

The Benefits

This has a number of benefits the main

Quick Summary

if you forget everything else here is a quick cheat sheet

Git Command

The Thing It Is Most Similar To

branch [to you local laptop]

creating a new folder/workspace in which you are going to make edits

stage + commit

saving your new edits

push [to the cloud/remote]

uploading your new folder to sharepoint

pull [to you local laptop]

downloading someone elses folder to sharepoint

fetch

refreshing you local folder to see all the files