Skip to content
Source
Sign inSign up

Manage repository settings

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 toReadSection in Settings
Change the text of About, or the branch that the Code tab shows firstChange the description or the default branchGeneral
Show a good card for links on X, Slack and DiscordShow a good link previewSearch and SEO
Turn JIRA-123 into a link to your trackerLink references to another toolAutolinks
Turn the Community tab offTurn Community offGeneral
Keep the head branches of merged pull requests, or delete themDelete head branches after a mergeGeneral

Protect the repository

You want toReadSection in Settings
Refuse tokens in pushes, issues and commentsKeep secrets out of the repositoryPush protection
Choose who reads the agent transcriptsChoose who reads agent transcriptsPush protection
Hide the code, or only clones and downloads, of a public repository from some peopleChoose who sees each partVisibility
Close a public repository to crawlersBlock crawlers on a public repositorySearch and SEO

Rename, archive or delete it

You want toReadSection in Settings
Give the repository a new nameRename a repositoryGeneral
Keep it readable, and stop pushes, issues and commentsArchive a repositoryDanger zone
Remove it for goodDelete a repositoryDanger zone

More