Jump to content

Discard all changes in CLI


Recommended Posts

Hello!

 

I have a build script that works with same workspace. Before building it must switch the workspace to latest changeset of a specified branch.

This is done with following code (Powershell)

cm stb --workspace=$Workspace br:$Branch

Unfortunately, if the workspace contains any changes (new files, edited files) this operation will fail.

How can I discard all changes in the workspace or switch it to another changeset from any state?

 

(I do not care about losing the changes, this workspace is for script usage only.)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...