The most common cause for a repository loading slowly in the web interface is having a lot of commits (changes to files). This often happens when you make lots of changes using the web interface. Clearing your commit history should resolve the issue.
Operating System: Any
Applies To: Faculty or Staff using CaaS
Last Updated: October 30, 2024
This document assumes you have been using the UBVCS web interface to manage your repository. You can skip step 1 if you are already using SmartGit to manage your repository.
- Clone your existing repository:
- Open SmartGit
- Close the Welcome to SmartGit window (if it pops up)
- Select Clone from the Repository menu (upper left corner of the window)
- Enter the SSH URI for your repository in the Repository URL box and click Next
- Select the Private Key File you downloaded in Step 2 of How to add code to UBVCS using SmartGit and click Login (if prompted)
- Click Next
- Select a location to store a local copy of your repository and click Finish
- Back up your files (just in case):
- Select Reveal in Explorer from the Tools menu
- Copy the directory containing your files to another location
- Delete your commit history:
- Open the directory you created using SmartGit
- Delete the .git folder
- Close the Explorer window and return to SmartGit
- Re-initialize your repository:
- Select Add or Create... from the Repository menu
- The directory containing your repository should already be selected. Click OK
- Click Initialize
- Re-add UBVCS as the remote repository for your files:
- Open the Remote menu and select Add
- Enter the SSH URI for the repository again and click Add
- Re-Commit your files:
- Select all of your files (or just the files you want in the repository) from the pane on the right
- Right click on one of the files
- Select Commit
- Enter a Commit Message (e.g. Cleared commit history)
- Check the box to Amend last commit instead of creating a new one
- Select Commit
- Update the repository:
- Select Pull from the Remote menu
- Click Pull
- Click Configure
- Click Fetch Only
- Select Push To from the Remote menu
- Check the box to Force pushing and click Push
Your commit history should now only have one entry and your repository should load quickly again.