user-manual: remote-tracking can be checked out, with detached HEAD
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		 Jonathan Nieder
					Jonathan Nieder
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							66a062a125
						
					
				
				
					commit
					45dfd40396
				
			| @ -367,13 +367,16 @@ above were created based on the remote branches at clone time and will | |||||||
| be updated by "git fetch" (hence "git pull") and "git push". See | be updated by "git fetch" (hence "git pull") and "git push". See | ||||||
| <<Updating-a-repository-With-git-fetch>> for details. | <<Updating-a-repository-With-git-fetch>> for details. | ||||||
|  |  | ||||||
| You cannot check out these remote-tracking branches, but you can | You might want to build on one of these remote-tracking branches | ||||||
| examine them on a branch of your own, just as you would a tag: | on a branch of your own, just as you would for a tag: | ||||||
|  |  | ||||||
| ------------------------------------------------ | ------------------------------------------------ | ||||||
| $ git checkout -b my-todo-copy origin/todo | $ git checkout -b my-todo-copy origin/todo | ||||||
| ------------------------------------------------ | ------------------------------------------------ | ||||||
|  |  | ||||||
|  | You can also check out "origin/todo" directly to examine it or | ||||||
|  | write a one-off patch.  See <<detached-head,detached head>>. | ||||||
|  |  | ||||||
| Note that the name "origin" is just the name that git uses by default | Note that the name "origin" is just the name that git uses by default | ||||||
| to refer to the repository that you cloned from. | to refer to the repository that you cloned from. | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user