You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
782 B
44 lines
782 B
19 years ago
|
git-checkout(1)
|
||
|
===============
|
||
20 years ago
|
|
||
|
NAME
|
||
|
----
|
||
19 years ago
|
git-checkout - Checkout and switch to a branch.
|
||
20 years ago
|
|
||
|
SYNOPSIS
|
||
|
--------
|
||
19 years ago
|
'git-checkout' [-f] [-b <new_branch>] [<branch>]
|
||
20 years ago
|
|
||
|
DESCRIPTION
|
||
|
-----------
|
||
19 years ago
|
Updates the index and working tree to reflect the specified branch,
|
||
|
<branch>. Updates HEAD to be <branch> or, if specified, <new_branch>.
|
||
20 years ago
|
|
||
|
OPTIONS
|
||
|
-------
|
||
19 years ago
|
-f::
|
||
|
Force an re-read of everything.
|
||
|
|
||
|
-b::
|
||
|
Create a new branch and start it at <branch>.
|
||
20 years ago
|
|
||
19 years ago
|
<new_branch>::
|
||
|
Name for the new branch.
|
||
20 years ago
|
|
||
19 years ago
|
<branch>::
|
||
|
Branch to checkout; may be any object ID that resolves to a
|
||
|
commit. Defaults to HEAD.
|
||
20 years ago
|
|
||
|
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
|
||
|
|