Import and Sync a GitHub Repository
Connect GitHub to import a repository, sync changes, and open a pull request from Cloud Studio.
Connect GitHub when you want to bring an existing repository into Cloud Studio or send Studio changes back for review. The connector can import public and private repositories, push commits, and open pull requests. You can only work with repositories the connection is allowed to access.
Connect your GitHub account
Open the GitHub connector
Open the BhaiCode dashboard, go to Connectors, and select Connect on the GitHub card.
Choose what to share
Authorize BhaiCode on GitHub. Select the organizations and repositories you need rather than granting access to unrelated work. The connector also accepts a personal access token as an alternative to OAuth.
Import a repository
Return to Cloud Studio and open the import list. Select the public or private repository you want to bring into Studio. If a repository is missing, check that you authorized the GitHub account and organization that can see it.
Sync and commit a change
Pull upstream changes before you send your own changes back, especially if teammates have pushed to the same branch. If the pull produces a merge conflict, resolve it interactively in Studio before committing the result. Check both sides of the conflict so you don’t lose changes that still belong in the branch.
Commit directly from Studio. Bhai can generate a semantic commit message based on the changes. Read it alongside the diff and correct it if it describes work the commit doesn’t contain. A clear message makes it easier to tell which commit to inspect later.
Before pushing, check the remote and branch. If you imported from a fork, confirm you’re pushing to your fork and comparing your changes against the repository you intend to update.
Open a pull request
Open a pull request into main when the change is ready for review. Studio can generate a Markdown summary of the features you added. Check that the summary matches the diff and gives a reviewer enough context to understand the change. A commit saves the change to a branch; the pull request is what asks the team to review it.
The cloud connection belongs to the web dashboard. For local Git operations in Desktop, use your local Git setup and operating system keychain.