Troubleshooting
Common issues and solutions when using godegit.
Troubleshooting
Permission denied
If you see a permission error when running godegit:
chmod +x /usr/local/bin/godegit
If the error occurs during installation, try installing to a user directory instead:
pnpm add -g godegit
Rate limiting
GitHub applies API rate limits to unauthenticated requests. If you hit the limit:
- Wait a few minutes and try again
- Set a personal access token for higher limits:
export GITHUB_TOKEN=your_token_here
godegit user/repo
Network errors
If godegit fails with a network error:
- Check your internet connection
- Run with
--verboseto see detailed error output:
godegit user/repo --verbose
- Confirm GitHub is reachable from your network
Repository not found
If godegit reports the repository cannot be found:
- Double-check the repository path (
user/repoor full URL) - For private repositories, set the
GITHUB_TOKENenvironment variable - Verify the branch name with
--branchif you specified one
Large repositories
For very large repositories, consider downloading only the subdirectory you need:
# Instead of the full repo
godegit large-org/large-repo/specific/folder
See Subdirectories for details.