Replit home pagelight logodark logo
  • Docs
  • Tutorials
  • Trust & Billing
  • Replit Teams
  • Changelog
  • Getting Started
    • Introduction
    • Quickstarts
    • Replit Core
    Replit Apps
    • Overview
    • Collaboration
    • Visibility
    • Advanced Configuration
    • App Embed
    • Templates
    Replit AI
    • Overview
    • Replit Agent
    • Replit Assistant
    • Integrations
    Replit Workspace
    • Overview
    • Features
    • Version Control
      • Overview
      • Connecting Replit to GitHub
      • Import your first Repository
      • Private & Personal Repositories
      • Using the Git Pane
      • Using Git with the Shell
      • Running GitHub repositories on Replit
      • Git workflows and commands
      • GitHub Authentication Errors in Replit
    • Themes
    Deployments
    • Overview
    • Deployment Types
    • Advanced Configuration
    Storage and Databases
    • Overview
    • Database
    • Object Storage
    • Key-Value Store
    Platforms
    • Mobile App
    • Desktop App
    Additional Resources
    • Replit Badge
    • CLUI, the Graphical CLI
    • Cheat Sheet
    FAQ
    • Overview
    • Start Building
    Replit home pagelight logodark logo
    • Start Building
    • Start Building
    Version Control

    Using Git on Replit

    Learn how to connect Replit with GitHub, import repositories, use Git commands, and manage version control in your Replit workspace.

    Connecting Replit to GitHub

    To import and edit GitHub repositories on Replit, first connect your Replit account to GitHub.

    Import your first Repository

    Now that you’ve linked your GitHub account to Replit, it’s time to import some code from GitHub!

    Private & Personal Repositories

    Once you’ve imported a GitHub repository, you will need to grant Replit permission so you can make changes tracked by your remote repository.

    Using the Git Pane

    The Git pane serves as a powerful tool for effortless code tracking, management, branch navigation, and collaborative work within your workspace.

    Using Git with the Shell

    Cloning an existing repository from the shell.

    Running GitHub repositories on Replit

    GitHub repositories can be run automatically on Replit. Head to https://replit.com/github to import a repository. Unlock private repositories after authenticating with GitHub and purchasing the Replit Core membership.

    Git workflows and commands

    The most crucial features of Git to learn are the basic Git workflow and commands.

    GitHub Authentication Errors in Replit

    While interacting with our Git-based Version Control tool in the Workspace and our GitHub integration, you may run into error messages.

    Was this page helpful?

    Previous
    Connecting Replit to GitHubLearn how to connect your GitHub account to Replit to import and edit repositories directly in the Replit workspace.
    Next
    xlinkedinyoutube
    Powered by Mintlify