"Git is a free and open source distributed version control system."

For a total layman like me,I'm terrified to continue at this point because these four words read like this: welsh My coach even called to ask me why I was stuck here and I confessed my fear and confusion.He then said something very liberating:Programmmers record any changes made to a project so that they could see the history of the files,find out who made certain changes and return to an earlier version if necessary.Also a version control system allows us to share changes,it makes things easier when several people are working together,like if we were to fix the same bug,I would let you know what changes I made so that we don't step on each other's toes.

Hmmmm,so git is a system through which programmers act like Captain Krik and perfect their teamwork? Count me in!

DVCS,illustrated dvcs

Jargon,Oh Jargon

  • The .git directory:It's usually a hidden folder that has all sorts of directories and files inside it. You'll rarely ever need to do anything inside here but it's the guts of Git, where all the magic happens.

  • Repository:A directory where Git has been initialized to start version controlling your files.

  • staged:Files are ready to be committed.

  • unstaged:Files with changes that have not been prepared to be committed.

  • untracked:Files aren't tracked by Git yet. This usually indicates a newly created file.

  • deleted:File has been deleted and is waiting to be removed from Git.

  • Staging Area: A place where we can group files together before we "commit" them to Git.

  • Commit: A "commit" is a snapshot of our repository. This way if we ever need to look back at the changes we've made (or if someone else does), we will see a nice timeline of all changes.

lifecyle

Basic git commands

  1. git-the simple guide
  2. try git
  3. Git-基础-记录每次更新到仓库