Create Your First Repository
This guide walks you through the complete lifecycle of a repository in OpenCodeHub.
Step 1: Create the Repository
Section titled “Step 1: Create the Repository”- Click the + button in the top navbar → New Repository
- Owner: Select yourself or an organization
- Repository Name: Enter
hello-world - Description: “My first project on OpenCodeHub”
- Visibility: Select Public
- Initialize: Check Initialize with README
Click Create Repository.
Step 2: Clone
Section titled “Step 2: Clone”SSH (Recommended)
Section titled “SSH (Recommended)”Add your SSH key in Settings → SSH Keys first.
git clone ssh://git@your-server:2222/username/hello-world.gitgit clone https://git.yourcompany.com/username/hello-world.gitFor HTTPS, you’ll need a Personal Access Token. Generate one at Settings → Tokens.
Step 3: Make Changes
Section titled “Step 3: Make Changes”cd hello-world
# Edit filesecho "# Hello World\n\nThis is my first change!" > README.md
# Commitgit add README.mdgit commit -m "Update README"Step 4: Push
Section titled “Step 4: Push”git push origin mainRefresh the repository page to see your changes.
Step 5: Create a Pull Request
Section titled “Step 5: Create a Pull Request”- Create a feature branch:
git checkout -b feat/add-feature- Make changes and push:
echo "New feature" > feature.txtgit add feature.txtgit commit -m "Add new feature"git push -u origin feat/add-feature- In the web UI, go to Pull Requests → New Pull Request
- Select
feat/add-featureas source,mainas target - Add a title and description
- Click Create Pull Request
Step 6: Review and Merge
Section titled “Step 6: Review and Merge”- Add reviewers on the PR page
- Reviewers can approve or request changes
- Once approved, click Merge or add to the Merge Queue
Step 7: Explore Features
Section titled “Step 7: Explore Features”Go to the Wiki tab to create documentation for your project.
Issues
Section titled “Issues”Go to Issues → New Issue to track bugs and feature requests.
Projects
Section titled “Projects”Go to Projects to create a kanban board for task management.
Actions
Section titled “Actions”Go to Actions to view CI/CD pipeline runs. Create .github/workflows/*.yml files to set up automated builds.
Settings
Section titled “Settings”Go to Settings to configure:
- Branch Protection — Require reviews, status checks
- Collaborators — Add team members
- Webhooks — Integrations with external services
- Deploy Keys — SSH keys for automated deployments
Next Steps
Section titled “Next Steps”- Stacked PRs — Break large changes into reviewable stacks
- AI Code Review — Get automated code feedback
- CI/CD — Set up automated pipelines
- CLI — Manage everything from the terminal