[PATCH] Documentation: Add asciidoc.conf file and gitlink: macro
[git/git.git] / Documentation / git-checkout.txt
CommitLineData
215a7ad1
JH
1git-checkout(1)
2===============
7fc9d69f
JH
3
4NAME
5----
215a7ad1 6git-checkout - Checkout and switch to a branch.
7fc9d69f
JH
7
8SYNOPSIS
9--------
215a7ad1 10'git-checkout' [-f] [-b <new_branch>] [<branch>]
7fc9d69f
JH
11
12DESCRIPTION
13-----------
0270f7c5
LAS
14Updates the index and working tree to reflect the specified branch,
15<branch>. Updates HEAD to be <branch> or, if specified, <new_branch>.
7fc9d69f
JH
16
17OPTIONS
18-------
0270f7c5
LAS
19-f::
20 Force an re-read of everything.
21
22-b::
23 Create a new branch and start it at <branch>.
7fc9d69f 24
0270f7c5
LAS
25<new_branch>::
26 Name for the new branch.
7fc9d69f 27
0270f7c5
LAS
28<branch>::
29 Branch to checkout; may be any object ID that resolves to a
30 commit. Defaults to HEAD.
7fc9d69f
JH
31
32Author
33------
34Written by Linus Torvalds <torvalds@osdl.org>
35
36Documentation
37--------------
38Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
39
40GIT
41---
42Part of the link:git.html[git] suite
43