Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ CheckoutBranch
Method
CheckoutBranch
pkg/cmd/extension/git.go:10–10 ·
view source on GitHub ↗
(branch string)
Source
from the content-addressed store, hash-verified
8
9
type
gitClient
interface
{
10
CheckoutBranch(branch string) error
11
Clone(cloneURL string, args []string) (string, error)
12
CommandOutput(args []string) ([]byte, error)
13
Config(name string) (string, error)
Callers
7
TestClientCheckoutBranchSwitchesBranches
Function · 0.65
TestClientCheckoutBranchReportsMissingBranch
Function · 0.65
checkoutBranch
Function · 0.65
closeRun
Function · 0.65
deleteLocalBranch
Method · 0.65
CheckoutBranch
Method · 0.65
installGit
Method · 0.65
Calls
no outgoing calls
Tested by
2
TestClientCheckoutBranchSwitchesBranches
Function · 0.52
TestClientCheckoutBranchReportsMissingBranch
Function · 0.52