https://youtu.be/DDXKVi_qCUE?si=ZhMZab3HyctcMsD2

Git is a version control system.

Think of version control as a timeline containing the history of your code.

Image from: https://faun.pub/awesome-git-technique-for-partial-merge-7d64a7e62440

Image from: https://faun.pub/awesome-git-technique-for-partial-merge-7d64a7e62440

You have your project on your local computer. Git calls that ‘working directory’ (or workspace).

Then you have the server (like GitHub or BitBucket), where your code will be stored. That’s your ‘remote’.

The idea is to be able to have a copy of your local work in the server, creating a recoverable versions of your project through time.

Your local codebase will be synchronized with the server, meaning you gonna modify your code locally and publish these modifications periodically to your remote.

All git commands are executed on the local terminal (or on any GUI like VSCode, Cursor, SourceTree, Kraken).

You can ‘vibe code’ them also ;)

image.png

image.png

<aside> <img src="/icons/light-bulb_gray.svg" alt="/icons/light-bulb_gray.svg" width="40px" />

This is basic Git guide.

Meaning lots of information were intentionally ommited to keep it simple.

For more concepts check this tutorial, or you can always ask your favorite LLM ;)

</aside>

Basic Concepts

You have your project in your computer.

You want to send it into version control server, let’s say GitHub.

Sign up, create an account there and then create a repository. There’s where your code will be stored.