Skip to content

GitCheckout

Damian edited this page Feb 16, 2020 · 1 revision

GitCheckout performs the git checkout <branch> command line helpers for PowerShell.

During the checkout process the command will check the branch exists locally. If not, it will check remotes/origin by default. In the future, you can optionally specify a different remote other than the default to check against.

Usage

GitCheckout "BranchName"          ; Checkout branch, origin as default
GitCheckout "BranchName" "origin" ; Pulls current branch from specified remote

Future

  • Specify a remote other than origin
Clone this wiki locally