2.3 notes
This commit is contained in:
		
							
								
								
									
										6
									
								
								notes/2.3-git_object.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								notes/2.3-git_object.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | |||||||
|  | ### 2.3.1 | ||||||
|  |  | ||||||
|  | git来说每次提交都创建一个commit对象,commit对象下有两个属性`tree` `parent`,用ID来表示,给定ID就能查看对象的类型是哪个,用`git cat-file -t <id>`来查看对象属性类型 | ||||||
|  | `commit` | ||||||
|  |  | ||||||
|  | `tree`对象下面对每个文件创建一个blob对象,blob对象里存的就是文件内容 | ||||||
							
								
								
									
										2
									
								
								notes/2.4-git_reset.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								notes/2.4-git_reset.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | |||||||
|  |  | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user