GitEasy

« All commands

Switch-Work Switch to another existing working area.

Read / Write GitEasy v1.5.3

Description

Switch-Work moves into a different existing working area. Use it to return to the main working area or to inspect a previous task's branch.

The command refuses to switch when an unfinished merge, rebase, cherry-pick, revert, or bisect is in progress; when there are unfinished conflicts; or when there are unsaved changes that would be lost or carried into the destination. Save your work with Save-Work first, or use Save-Work -NoPush for a local checkpoint.

Each invocation writes a self-contained diagnostic log file. Successful runs log silently; failures throw a plain-English message and point at the log file with the technical detail.

Recipes

Recipe 1
EXAMPLE 1
Switch-Work -Name main
Recipe 2
EXAMPLE 2
Find-CodeChange; Switch-Work -Name giteasy-v2-refresh

Notes

Safety:

Parameters

-Name required String
The name of the working area to switch into. Must already exist.
-LogPath optional String
Override the directory where the diagnostic log for this run is written.
-WhatIf optional SwitchParameter
-Confirm optional SwitchParameter

Was this page helpful? Report an issue or suggest an improvement →