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:

本文通过将Git命令比喻为全景摄影的过程,生动地解释了gitinit、gitadd、gitcommit、gitlog、gitshow和gitcheckout的功能。并对比了已跟踪与未跟踪文件的区别,深入浅出地介绍了Git如何保存文件修订历史。
1598

被折叠的 条评论
为什么被折叠?



