Skip to content
On this page

Restore previous versions

CodePanda automatically tracks all changes you make to your project. You can view previous versions and restore your project to any earlier state.

Need Help?

If you have any questions or need further assistance, don't hesitate to email us at [email protected]. We're always here to connect with you and offer support!

Viewing project history

Every change in your project is saved as a snapshot, allowing you to browse through the history of your work:

  1. In your project, click the Snapshots tab in the top navigation bar
  2. A list of commits (snapshots) will appear on the left side of the screen
  3. Click on any snapshot to view the changes made in that version

Understanding the snapshots view

The snapshots interface consists of:

  • Commit list: Shows all snapshots of your project in chronological order (newest first)
  • Commit details: When you select a commit, you'll see all files that were changed
  • Diff view: Shows the differences between the selected version and the previous version

Each commit entry shows:

  • A short commit hash (e.g., a1b2c3d)
  • The commit message describing what was changed
  • The date and time when the change was made

Viewing specific file changes

To examine changes to a specific file:

  1. Select a commit from the list
  2. The right panel will show all files that were modified in that commit
  3. Click on any file name to see the exact changes made to that file
  4. The diff view will highlight:
    • Lines that were added (in green)
    • Lines that were removed (in red)
    • Lines that remained unchanged

WARNING

Switching to a previous commit will update your working directory to match that exact state. Any unsaved changes in your current workspace may be lost.

Accessing snapshots on mobile devices

On mobile devices:

  1. Tap the hamburger menu in the top right corner
  2. Select Snapshots View from the menu options
  3. The interface works the same way as on desktop, but is optimized for touch interaction

By using the snapshots feature effectively, you can experiment freely with your project, knowing you can always return to a previous working state.