switch: Switch the working copy to another branch

Usage:
  eg switch BRANCH
  eg switch REVISION

Description:
  Switches the working copy to another branch, or to another tag or
  revision.  (Switch is an operation that can be done locally, without any
  network connectivity).

  To list, create, or delete branches to switch to, use eg branch.  To
  list, create, or delete tags to switch to, use eg tag.  To list, create,
  or delete revisions, use eg log, eg commit, or eg reset, respectively.
  :-)

Examples:
  Switch to the 4.8 branch
      $ eg switch 4.8

  Switch the working copy to the v4.3 tag
      $ eg switch v4.3


Differences from git switch:
  eg switch is a subset of the functionality of git checkout; the abilities
  and flags for creating and switching branches are identical between the
  two, just the name of the function is different.

  The ability of git checkout to get older versions of files is not part of
  eg switch; instead that ability can be found with eg revert.

See also
  Run 'man git-checkout' for a comprehensive list of options available.
  eg switch is designed to accept the same options as git checkout, and
  with the same meanings unless specified otherwise in the above
  "Differences" section.