Commit and Review
Once you're satisfied with the changes you've made in Superblocks, it's time to commit your changes to Git and start getting them reviewed. We recommend committing frequently so you can track your progress and maintain a well-documented history of your work using Git.
Commit and push
Creating commits and pushing them to your Git repository is as simple as clicking a button. When you create a commit in Superblocks, it's immediately pushed to the corresponding branch in your repository.
To create a commit:
- Click the Version Control panel icon
- Scroll to Committed changes
- Enter your commit message
- Click Create new commit
Retry failed pushes
In some cases, Superblocks may fail to push your commit to your remote repository. To repush a failed commit:
- Click on the Version Control panel icon
- Scroll to the Committed changes section
- Find the failed commit and click into its options menu
- Click Retry push
Viewing changes
After your commit has been pushed to your remote repository, you can view the code diff for your commit by opening the commit in your repo. To open your commit quickly:
- Click on the Version Control panel icon
- Scroll to the Committed changes section
- Find the commit you want to view
- Click View in GitHub or View in GitLab
This will open the code diff for your change in your repository to easily see what was changed in that commit.
Reviewing changes
With changes pushed to your repository, you're ready to get feedback by creating a merge request or sharing a Branch Preview to get feedback on your live Application.
Create a merge request
You can open pull requests for your branch quickly from right inside the Superblocks UI. To open a PR:
- Click on the Version Control panel icon
- Scroll to the Committed changes section
- Click the Create a Merge Request button
This will take you to your Git repository where you can compare all the commits on your branch to the current state of the default branch of your repo. Open the PR to start getting feedback on your changes.
Share Branch Preview
Every branch in Superblocks comes with a dedicated Branch Preview that's pinned to the latest commit on that branch. Share Branch Previews with your stakeholders so they can QA changes or offer feedback on your newest feature before it's released.
To access branch previews, simply:
- Navigate to the Application you want to share
- Switch to the branch with your changes
- Click Preview
- Share the URL with your team
Branch Previews are viewable by any of your Application's viewers, making it easy to get buy-in from end-users before deploying.
What's next?
With your changes pushed to your repository, you're ready to open a PR to have your changes reviewed. From here, learn more about:
- Merging updates into your branch
- Resolving conflicts when merging
- Sync changes back into Superblocks to test and deploy