Forrest logo
back to context overview

git-switch

List of commands for git-switch:

  • git-switch:tldr:0dd9f git-switch: Switch to an existing branch.
    $ git switch ${branch_name}
    try on your machine
    explain this command
  • git-switch:tldr:369b4 git-switch: Switch to the previous branch.
    $ git switch -
    try on your machine
    explain this command
  • git-switch:tldr:ba9ca git-switch: Create a new branch based on an existing commit and switch to it.
    $ git switch --create ${branch_name} ${commit}
    try on your machine
    explain this command
  • git-switch:tldr:cbd26 git-switch: Create a new branch and switch to it.
    $ git switch --create ${branch_name}
    try on your machine
    explain this command
  • git-switch:tldr:d8266 git-switch: Switch to a branch and update all submodules to match.
    $ git switch --recurse-submodules ${branch_name}
    try on your machine
    explain this command
  • git-switch:tldr:d9efe git-switch: Switch to a branch and automatically merge the current branch and any uncommitted changes into it.
    $ git switch --merge ${branch_name}
    try on your machine
    explain this command
back to context overview