GitKraken CLI

gk workspace checkout

Perform a ‘git checkout’ command on repos in a workspace

Synopsis

Perform a ‘git checkout’ command on repositories within a workspace. Use ‘–’ to separate ‘gk workspace checkout’ options from git-specific flags and arguments. Place all git-specific flags and arguments after ‘–’ to ensure the git command receives them.

gk workspace checkout [flags] -- [git-flags]

Examples

  # Perform a 'git checkout new-branch' command within every repo selected
  $ gk workspace checkout new-branch

  # Pass flag '-b' to the 'git checkout' command in order to create a branch in every repo
  $ gk workspace checkout -- -b new-branch

  # Pass arguments and flags to the 'git checkout' command
  $ gk workspace checkout new-branch -- --force

  # Pass flag '--all' to the 'gk workspace checkout' command to select every repo without being asked
  $ gk workspace checkout --all new-branch -- new-branch--force

Options

  -a, --all    Skip selection and checkout all repositories
  -h, --help   help for checkout

Options inherited from parent commands

  -s, --select-ws   Skip the default workspace for this action and force a workspace selection

SEE ALSO

  • gk workspace - Interact with your workspaces. Alias: ‘ws’
Auto generated by spf13/cobra on 28-Jun-2024

© 2023 Axosoft, LLC DBA GitKraken