Version control
Latitude’s version control system allows you to manage and track changes to your prompts over time.
Key Concepts
Version
A version represents a specific state of your project. It captures the content of all prompts at a particular point in time.
Drafts
Drafts are work-in-progress versions that haven’t been finalized yet. They allow you to make changes without affecting the main version of your project.
Other users can see all versions and modify them.
Published version
Published versions are finalized versions that have been released into your app in production. They represent stable, approved states of your prompts.
Working with Version Control
Creating a Draft
To start making changes:
- Navigate to a project.
- Open the version dropdown in the sidebar.
- Click on the New version button to create a draft.
- Alternatively, you can click on View in an existing draft to open it.
- Once you are in a draft, you can make changes to your prompts.
Publishing a version
When you’re ready to finalize your changes:
- Make sure you are in the version you want to publish.
- Click
Publish
in the sidebar. - Confirm the publish and then your changes will be in production.
Best Practices
- Review changes carefully before publishing.
- Use drafts for experimental changes or work-in-progress features.
By leveraging Latitude’s version control system, you can confidently manage your prompts, collaborate with team members, and maintain a clear history of your project’s evolution.