summaryrefslogtreecommitdiff
path: root/Documentation/git-checkout-script.txt
blob: 52831abd191a9a1cac47afc0ed64a4c368547126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
git-checkout-script(1)
======================

NAME
----
git-checkout-script - Checkout and switch to a branch.

SYNOPSIS
--------
'git-checkout-script' [-f] [-b <new_branch>] [<branch>]

DESCRIPTION
-----------
Updates the index and working tree to reflect the specified branch,
<branch>. Updates HEAD to be <branch> or, if specified, <new_branch>.

OPTIONS
-------
-f::
	Force an re-read of everything.

-b::
	Create a new branch and start it at <branch>.

<new_branch>::
	Name for the new branch.

<branch>::
	Branch to checkout; may be any object ID that resolves to a
	commit. Defaults to HEAD.

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