26

Imagine a young explorer who's just heard that word, "git". But it actually means an entire world. How is this young explorer supposed to dive into this mysterious world with just a machine in hand ?

He's got vs code though !! And he's also got fish and zsh on WSL !

you are viewing a single comment's thread
view the rest of the comments
[-] textik@sh.itjust.works 4 points 5 days ago

I like to explain it as "advanced undo-redo." Most people who use computers have an intuitive understanding of undo-redo. You can ctrl-z all the way back to when the document was empty, and ctrl-y all the way forward to where you were. The difference with git is that you have to manually create those checkpoints with a commit.

But what if you ctrl-z a few times, and then type something? Most people know that all the changes they just ctrl-z'ed are gone. This is git's first advanced feature: branching. Git allows you to maintain alternate 'timelines' for your file(s), which you can hop between at will. This is also what makes it a powerful collaboration tool: everyone on the team can maintain their own personal branches.

That last capability becomes extremely powerful with the next advanced feature: merging. Git has a number of very nice tools to assist in merging timelines back together, identifying conflicts when needed. This allows teams to set up one "true" branch that is the main (we used to use a different word) timeline. That way, each developer isn't undoing and redoing on the same set of files, they can make their changes in isolation, and when a change is ready, it can be merged back into the main timeline. The proposed changes can be easily seen using git's diff tool, and can be reviewed by the team, further refined, and finally merged with the main timeline. After this operation, the two histories have been joined and everyone else can pull in and start using that change.

I find that's enough to get a new user conceptually oriented. That is, they have a good idea of what they need to do, if not the exact git commands to do it. But that's the easy part, just a quick glance at the man page is all that's needed.

this post was submitted on 31 May 2026
26 points (86.1% liked)

linux4noobs

3208 readers
1 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 2 years ago
MODERATORS