Tips on Rollback and Version Control

I have seen a lot of forum posts about rollbacks/versioning. So I want to make a quick post about a workflow that helps you keep track of your app and hopefully never have to wrestle with Agent messing up your code!

Why you should listen to me?

I have no prior coding experience and don’t write a single line of code. If I can do it, you can too!

Workflow:
Break your app/website into different features. Don’t add all the features at once.

Step 1: Create the app/website with core feature
Step 2: Work with the agent to get the app/wesbite into a functional state
Step 3: Open Git Tab and connect the app with a GitHub Repo!
Step 4: Now go to GitHub and create a branch (Branch → new branch)
Step 5: Go back to Replit and have Git Tab sync to the new branch instead of the main branch
Step 6: Repeat 1-5 for each new features.

When the chat gets too long, just start a new chat and use Git tab to sync from the branch and work off that. This should make the development process a lot cleaner and less costly!

If you are new to Git, you can watch this 3min video to show you how to get started!

Even when Agent is having a bad hair day, you still have the ability to roll the code back to a functional state! Hope this is helpful.

Kudos to our one and only @kody-replit for teaching me how to use Git

9 Likes

If you need a walkthrough example on how to define features, you can take a look at this post: [Video Summary App] Follow my journey building a webapp as a non-coder

Super. Thanks for sharing.

1 Like

This is super I have been using a similar approach for sometime now to save my workflow – Push all working code to Git.

1 Like