git

 

version control from the creator of Linux

 

A presentation by Razzi Abuissa

 

https://git-scm.com

 = type along

before there was

GitHub

there was

email

Life without version control

👨🏻‍💻   🧕🏼

index.html                 index.html

index-v2.html                 index-v2.html

uh oh!

before there was

git

there was

diff

 

before there was

git

there was

patch

قبل أن يكون هناك

git

كان هناك

patch

How does git work?

 

We initialize a repository,

 

and we make commits.

mkdir website


cd website


git init


git commit

the staging area

 

git status

time to commit

git commit -m 'Initial commit'

we get a warning

Let's add an email

 

git config --global user.email "razzi@abuissa.net"

git is

 

distributed

 

version control

 

هو نظام التحكم في الإصدارات الموزعة git

Commercial git hosts: "forges"

- github

- gitlab

- sourcehut

Most common git workflow

GitHub

developer A

 

developer B

web hosting platform

Self-hosted git

developer A

 

developer B

web hosting platform

Doing the same thing from VSCode

Need to add SSH key to GitHub

 

so that GitHub knows it's me :)

Let's deploy our site to render.com

 

https://render.com

Tip: clone with depth=1 for speed

 

git clone --depth=1 https://github.com/razzius/repo

 

Fetch history later:

 

git fetch --unshallow

 

If that still doesn't work, download a .tar and make an old-fashioned patch

See you on the internet!

 

-Razzi

 

http://abuissa.net

razzi@abuissa.net

git

By razzi

git

  • 37