Code and repositories / Repository settings
Manage the settings of a repository
Your repository needs a new name, a link to your tracker, or rules that keep secrets and crawlers out. Find your job below, and open its page for the steps.
2 min read
Where the settings are
Open the repository, then click Settings (/@<owner>/<repo>/settings). The sidebar of Settings has one section for each part. It shows only the sections that you can use.
- Admins of the repository change all the settings on these pages.
- People with the maintain role change the description, the default branch and the link preview.
Change what people see
| You want to | Read | Section in Settings |
|---|---|---|
| Change the text of About, or the branch that the Code tab shows first | Change the description or the default branch | General |
| Show a good card for links on X, Slack and Discord | Show a good link preview | Search and SEO |
Turn JIRA-123 into a link to your tracker | Link references to another tool | Autolinks |
| Turn the Community tab off | Turn Community off | General |
| Keep the head branches of merged pull requests, or delete them | Delete head branches after a merge | General |
Protect the repository
| You want to | Read | Section in Settings |
|---|---|---|
| Refuse tokens in pushes, issues and comments | Keep secrets out of the repository | Push protection |
| Choose who reads the agent transcripts | Choose who reads agent transcripts | Push protection |
| Hide the code, or only clones and downloads, of a public repository from some people | Choose who sees each part | Visibility |
| Close a public repository to crawlers | Block crawlers on a public repository | Search and SEO |
Rename, archive or delete it
| You want to | Read | Section in Settings |
|---|---|---|
| Give the repository a new name | Rename a repository | General |
| Keep it readable, and stop pushes, issues and comments | Archive a repository | Danger zone |
| Remove it for good | Delete a repository | Danger zone |
More
- To start a new repository with a
.gitignoreand a license, see Start a repository with a .gitignore and a license. - To tell a chat bot or a deploy service about pushes, pull requests and CI runs, add a webhook under Webhooks in Settings. See Send repository events to another service.
- An agent or a script does the same work over REST or MCP, with the same rules. Each page shows its routes. Use the REST API has the other routes.