Can you organize GitHub repositories into folders or groups?
Codemia Knowledge Hub ·
No. GitHub's web interface does not support folder-like structures for organizing multiple repositories hierarchically. Each repository is a standalone entity with its own URL, issues, pull requests and other attributes. You can still group repositories effectively with naming conventions, organizations, topics and project boards.
Group related repositories with a naming convention
A consistent prefix keeps related repositories next to each other when you view your GitHub page:
projectA-backendprojectA-frontendprojectA-docs
Use GitHub Organizations as top-level groups
An organization gives you a structure beyond a single user account. It can hold many repositories and is particularly useful for teams and enterprises.
- Team-based permissions: control who has access to each repository in the organization.
- Repository grouping: organizations are not folders, but they let you separate repositories by project or department.
Tag repositories with topics
You can assign topics to repositories. They act as metadata tags for categorizing projects.
- Searchable tags: search for repositories that carry a specific topic.
- Custom topics: define topics that fit your workflow or domain.
Track work across repositories with project boards
- Cards for repositories: make a card for each repository you want to manage in a project and arrange them in columns such as "In Progress" and "Completed".
- Cross-repository projects: a project can span multiple repositories, which helps track features or tasks across them.
Example: grouping a product line
- Company name: CodeX
- Goal: organize repositories for a new product line.
codex-productx-apicodex-productx-uicodex-producty-apicodex-producty-dashboard
- Add topics:
- For
codex-productx-api, add topicsapi,productx,backend. - For
codex-productx-ui, add topicsui,productx,frontend.
- Create a project board for
Product X Developmentand add cards linking to each repository with relevant tasks.
Keep the structure useful over time
- Regular review: check periodically that your repositories and their organization still match your current projects and goals.
- Documentation: keep a README in each repository with links to related repositories. This gives you navigation similar to folders.
Related reading
- Can I delete or undo a git commit but keep the changes?
- Can I get a list of files marked --assume-unchanged?
- Can I get a patch-compatible output from git-diff?
- Can I 'git commit' a file and ignore its content changes?
- Can I make a user-specific gitignore file?
- Can I make fast forwarding be off by default in Git?
- Can I make 'git diff' only display the line numbers AND changed file names?
- Can I recover a branch after its deletion in Git?
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseInterview Questions practice on Codemia
Over 11,000 interview practice questions for 300+ companies, searchable by company and role.