Git

414 views

Published on

Short Git exercise for Rails class

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
414
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Git

  1. 1. Integrity 气节Tuesday, January 29, 13- It’s impossible to change the contents of any file or directory without Git knowing about it- When you do actions in Git, nearly all of them only add data to the Git database. It is verydifficult to get the system to do anything that is not undoable or to make it erase data in anyway As in any VCS, you can lose or mess up changes you haven’t committed yet; but after youcommit a snapshot into Git, it is very difficult to lose, especially if you regularly push yourdatabase to another repository.
  2. 2. index == stagingTuesday, January 29, 13its all about the index
  3. 3. commit == snapshot ‣ not a diff ‣ A commit takes everything in the index and makes a snapshotTuesday, January 29, 13
  4. 4. Branches are just pointers to commitsTuesday, January 29, 13
  5. 5. YOU NEED COLOR git config color.ui autoTuesday, January 29, 13
  6. 6. What we’ll do • Exercise in Other Assignments • Mess around with Git BranchingTuesday, January 29, 13

×