UCB CS 61B -GIT 基础
UCB git 使用教程:
git init: Creates a box in which to permanently store panoramic pictures.
git add: Takes a temporary photo of one thing that can be assembled into a panoramic photo later.
git commit: Assembles all available temporary photos into a panoramic photo. Also destroys all temporary photos.
git log: Lists all the panoramic photos we’ve ever taken.
git show: Looks at what is in a particular panoramic photo.
git checkout: Rearranges files back to how they looked in a given panoramic photo. Does not affect the panormiac photos in your box in any way.
Tracked vs. Untracked Files
Git repos start off not tracking any files. In order to save the revision history of a file, you need to track it. The Git documentation has an excellent section on recording changes. An image from that section is placed here for your convenience: