How to implement this command using go-git.
git clone --reference /path/to/reference/repo
I need to implement a feature that caches the code from a remote repository to a specific path. If the cache is configured as "true", then use the git clone --reference
command to reuse the files from the cache.
I have an idea that after copying the files in the cache to the corresponding workspace directory, execute git pull to achieve a similar function. However, I'm not sure if there is a better way.