Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Git is a tool that helps people keep track of changes to files, especially when working on a team. Here's how it works:

1. Imagine you have a folder with some important documents in it. You can think of the folder as a "repository" in git.

2. When you make a change to one of the documents, git helps you keep a record of that change. It does this by creating a "commit," which is like a snapshot of all the files in the repository at that moment in time.

3. Each commit has a special message that explains what changed in the files. For example, you might write a commit message like "added a new paragraph to the report" or "fixed a typo in the spreadsheet."

4. You can have many different commits in a repository, and they all form a timeline of changes. This is called the "history" of the repository.

5. If you ever need to go back to an earlier version of the repository, you can use git to find the commit you want and restore the files to that version.

Which part of this is "completely wrong?"



If you do a foolish thing and get lucky it was still a foolish thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: