← Back to Documentation

Git Clone Guide

Learn how to clone repositories from Revolv

Using HTTPS

git clone http://localhost:3001/username/repo-name.git

This is the simplest method. Works with any Git client.

Using Revolv CLI

# Install Revolv CLI
npm install -g @revolv/cli

# Clone a repository
revolv clone username/repo-name

The Revolv CLI provides a simpler interface for cloning repositories.

Clone Specific Branch

git clone -b branch-name http://localhost:3001/username/repo-name.git

Shallow Clone

# Clone only the latest commit
git clone --depth 1 http://localhost:3001/username/repo-name.git

Useful for large repositories or when you only need the latest code.

Troubleshooting

If you encounter issues cloning:

  • Make sure the repository URL is correct
  • Check that the repository is public or you have access
  • Verify your server is running on the correct port
  • Try using the Download ZIP option as an alternative