Issue
You want to view git logs from a client’s IguanaMainRepo and/or want to revert to a previous commit.
Solution
You can view the logs using the Mac program SourceTree, but you will need a cloned IguanaMain repo, run the following command with git or in git bash:
You can now import the cloned repo in SourceTree and view the git history.
If you want to revert IguanaMainRepo to the previous commit, cd into the IguanaMainRepo and run:git update-ref HEAD HEAD^
Empty Repo Error
If you get the error “warning: You appear to have cloned an empty repository.” it means that the IguanaMainRepo’s git has been corrupted:
If you rebuild Iguana using this repo, you will get a service error log “Local push doesn't (yet) support pushing to non-bare repos.” and Iguana will rebuild from scratch.
You can try:
Rebuilding Iguana using both the IguanaMainRepo and IguanaConfigurationRepo
Sync the repositories from the <iguana>:<port>/debug
Stop Service
Try the git clone command
If it still does not work, reach out to the development team. In #36283 Obner was unable to git clone using Git Bash and Linux git but John was able to using Mac terminal.