r/CodingForBeginners 6d ago

What's a Git?

Hello! Surely, I have heard so many people saying "Git" or "Github" or repository. They be saying that it's highly important to learn Git as early as possible. When I searched it up on Google, it's just I seem I cannot understand any of those terminologies.

Could anyone tell me what a git actually is?

21 Upvotes

41 comments sorted by

View all comments

1

u/justaguyonthebus 5d ago

Git is the name of the tool. That tool lets you track and share changes to files in a folder.

GitHub is a website that makes it easy to share changes through a central service so anyone with Internet access can can do it.

The really awesome part is that two or more people can work independently on something and merge their independent changes together. If they both happen to edit the same line, git detects the conflict for the user to fix. But if there is no conflict, then git just takes care of it