
How to Use an Old Working Commit When Main Blocks Level Design
When main is broken (eg. play test scene has a bug) and will take some time to recover. We have the option to use an older working commit to unblock yourself and test levels . This guide covers how to navigate to an old commit, create a new branch, make changes, stash those changes, and commit those changes to main branch.
Leveraging a Working Commit for Progress
When encountering roadblocks on the main branch, accessing a reliable commit from your project's history can provide a clear path forward.
Creating new branch from a working Commit and Testing New Content
Stashing Changes and Committing
After successfully crafting and validating your new content within the safe confines of your working commit, we'll guide you on how to stash these changes for future use. You'll learn how to seamlessly transition back to the main branch, apply your stashed modifications, commit your updates, and push them to your repository.
Let's get started.
We will navigate to the Fast Block Client, Main branch page, and then select Commits.

In this case, I have found out that the last working commit is the one with the message "More island 8 levels". I'm going to copy this commit's hash.




So, now your HEAD should be on that branch you just created.

Let's go to Unity, refresh "ctrl + R" inside of the Editor.
Create the changes you want. For example, I created a "NewLevelTest"

When I am ready to commit those changes. I go back to the tower.

Find and select the NewLevelTest changes I added.




After I'm in the main branch, I can return to my stash and apply the stash I just saved.


If I go to my Working Copy on my current main branch, I see the level changes I created. And I can commit or push from here as I would normally.
