We recently made changes to our public SonarQube repository GitHub - SonarSource/sonarqube: Continuous Inspection · GitHub . As a result, some Community users who have cloned or forked the repository may not see new commits when they update their local copy.
If your local repository is affected, follow the steps below to resync it. Before proceeding, make sure you have saved or committed any local work you want to keep: these commands reset your local master branch to match the updated repository history.
If you have a direct clone of the SonarQube repository
From your local repository directory, run:
git fetch origin
git reset --hard origin/master
If you have a fork of the SonarQube repository
From your local fork directory, run:
git checkout master
git fetch upstream
git reset --hard upstream/master
If you also want to update the master branch in your fork on GitHub, run:
git push origin master --force
After completing these steps, your clone or fork will be aligned with the current SonarQube repository history.
Let us know if you run into any issues.
Stevan