2005-09-08 02:26:23 +02:00
|
|
|
git-checkout(1)
|
|
|
|
===============
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2005-09-08 02:26:23 +02:00
|
|
|
git-checkout - Checkout and switch to a branch.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2005-09-08 02:26:23 +02:00
|
|
|
'git-checkout' [-f] [-b <new_branch>] [<branch>]
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2005-09-07 23:17:18 +02:00
|
|
|
Updates the index and working tree to reflect the specified branch,
|
|
|
|
<branch>. Updates HEAD to be <branch> or, if specified, <new_branch>.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2005-09-07 23:17:18 +02:00
|
|
|
-f::
|
|
|
|
Force an re-read of everything.
|
|
|
|
|
|
|
|
-b::
|
|
|
|
Create a new branch and start it at <branch>.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
2005-09-07 23:17:18 +02:00
|
|
|
<new_branch>::
|
|
|
|
Name for the new branch.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
2005-09-07 23:17:18 +02:00
|
|
|
<branch>::
|
|
|
|
Branch to checkout; may be any object ID that resolves to a
|
|
|
|
commit. Defaults to HEAD.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
Author
|
|
|
|
------
|
|
|
|
Written by Linus Torvalds <torvalds@osdl.org>
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
--------------
|
|
|
|
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
|
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
|
|
|
Part of the link:git.html[git] suite
|
|
|
|
|