Skip to content

ThingWorx Git Extension– Changes not reverting after Checkout Commit #65

@Jamal8548

Description

@Jamal8548

I’m facing a small issue with ThingWorx Git extension.

Let’s say I have exported a project and made a small change in one of the services (but haven’t committed it yet). Then I decide that I don’t want to keep this change and want to revert back to the previous commit version of the project.

Even though I use “Checkout Commit” and then import the entity again, the old version of the service doesn’t appear — the change is still there.

Everything works fine normally when I commit and push, but in this case (uncommitted local changes that I want to discard), it seems not to revert the entity properly.

Right now, my only workaround is to commit the unwanted change with a dummy message, and then go back to the previous commit using Checkout Commit — but that’s not really ideal.

Has anyone found a better way to completely revert to a previous commit and restore entities (like services) to their exact older state without committing the unwanted change first?

Thanks in advance for any suggestions!

Thingworx community post : https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-Git-Extension-Changes-not-reverting-after-Checkout/m-p/1039135#M70739

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions