git Command

From GM-RKB
Jump to navigation Jump to search

A git Command is a system command for a git system.



References

2013

  • http://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository
    • http://git-scm.com/book/en/v2/book/02-git-basics/images/lifecycle.png
    • QUOTE: You have a bona fide Git repository and a checkout or working copy of the files for that project. You need to make some changes and commit snapshots of those changes into your repository each time the project reaches a state you want to record.

      Remember that each file in your working directory can be in one of two states: tracked or untracked. Tracked files are files that were in the last snapshot; they can be unmodified, modified, or staged. Untracked files are everything else – any files in your working directory that were not in your last snapshot and are not in your staging area. When you first clone a repository, all of your files will be tracked and unmodified because you just checked them out and haven’t edited anything.

      As you edit files, Git sees them as modified, because you’ve changed them since your last commit. You stage these modified files and then commit all your staged changes, and the cycle repeats.