Creating a new repository
Navigate to the new repository page
Click on your profile menu and select New Repository, or navigate directly to
/new.Enter repository details
Fill in the repository information:
- Repository name: Enter a name for your repository (e.g.,
my-awesome-project)- Only letters, numbers, hyphens, and underscores are allowed
- Name cannot end with
.git - Maximum 100 characters
- Spaces will automatically be converted to hyphens
- Description (optional): Add a brief description of your project (up to 500 characters)
Choose visibility
Select the repository visibility:
- Public: Anyone can see this repository
- Private: Only you can see this repository
Private repositories require a Personal Access Token (PAT) for all git operations, including cloning.
Repository name requirements
When creating a repository, your name must follow these rules:- Minimum 1 character, maximum 100 characters
- Can only contain:
- Letters (a-z, A-Z)
- Numbers (0-9)
- Hyphens (-)
- Underscores (_)
- Cannot end with
.git
Initial setup
After creating a repository, you’ll see instructions for pushing your code. There are two main approaches:Creating a new repository on the command line
If you’re starting from scratch:Pushing an existing repository
If you already have a Git repository:You’ll need a Personal Access Token to push changes. Create one in Settings > Personal Access Tokens.
Managing repository settings
You can update your repository settings at any time by navigating to the repository’s Settings tab.Navigate to repository settings
Go to your repository and click on the Settings tab in the navigation menu.
Update repository details
You can modify:
- Description: Update or add a description for your repository
- Visibility: Change between public and private
The repository name cannot be changed after creation.
Repository visibility
Public repositories
- Anyone can view the repository contents
- Visible in your profile’s repository list
- Can be cloned without authentication
- Requires a Personal Access Token for push operations
Private repositories
- Only you can view the repository
- Not visible to other users
- Requires a Personal Access Token for all operations (clone, pull, push)
Next steps
Git operations
Learn how to clone, push, and pull from your repositories
Managing issues
Track bugs and feature requests with issues