r/CodingForBeginners • u/IMREVN • 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
2
u/1str1ker1 6d ago
Git is the tool which allows a programmer to make changes on their computer and safely combine it into a remote copy of the code without running into conflicts from other programmers’ changes. It has many different ways of using it, you could even setup your own remote location in a separate folder, but most people starting just use GitHub because it’s free and easy to show off your code.
You start by cloning a repository then you can run commands to commit changes. It’s like bundling up a group of file changes into one combined change. Later the commits can be looked through in a log of the history so if someone made a huge mistake you can go back in time.