Sichtbarkeit eines Repositorys festlegen

Du kannst festlegen, wer Dein Repository anzeigen kann.

Über Änderungen der Repository-Sichtbarkeit

Organisationsinhaber können die Möglichkeit, die Sichtbarkeit des Repositorys zu ändern, auf Organisationsinhaber einschränken. For more information, see "Restricting repository visibility changes in your organization."

We recommend reviewing the following caveats before you change the visibility of a repository.

Repository als privat festlegen

  • GitHub will detach public forks of the public repository and put them into a new network. Public forks are not made private.
  • If you change a repository's visibility from internal to private, GitHub will remove forks that belong to any user without access to the newly private repository. The visibility of any forks will also change to private. For more information, see "What happens to forks when a repository is deleted or changes visibility?"
  • If you're using GitHub Free for user accounts or organizations, some features won't be available in the repository after you change the visibility to private. For more information, see "GitHub's products."
  • Any published GitHub Pages site will be automatically unpublished. If you added a custom domain to the GitHub Pages site, you should remove or update your DNS records before making the repository private, to avoid the risk of a domain takeover. For more information, see "Managing a custom domain for your GitHub Pages site."
  • GitHub will no longer include the repository in the GitHub Archive-Programm. For more information, see "About archiving content and data on GitHub."
  • GitHub Advanced Security features, such as code scanning, will stop working unless the repository is owned by an organization that is part of an enterprise with a license for Advanced Security and sufficient spare seats. Weitere Informationen findest Du unter „Informationen zu GitHub Advanced Security“.

Repository als intern festlegen

Note: Internal repositories are available with GitHub Enterprise Cloud and GitHub Enterprise Server 2.20+. Weiter Informationen findest Du unter „GitHub Produkte."

Repository als öffentlich festlegen

  • GitHub will detach private forks and turn them into a standalone private repository. For more information, see "What happens to forks when a repository is deleted or changes visibility?"
  • If you're converting your private repository to a public repository as part of a move toward creating an open source project, see the Open Source Guides for helpful tips and guidelines. You can also take a free course on managing an open source project with GitHub Learning Lab. Sobald Dein Repository der Öffentlichkeit zugänglich ist, kannst Du im Community-Profil des Repositorys überprüfen, ob Dein Projekt die Best Practices zur Unterstützung von Mitarbeitern erfüllt. For more information, see "Viewing your community profile."
  • The repository will automatically gain access to GitHub Advanced Security features.

For information about improving repository security, see "Securing your repository."

Changing a repository's visibility

  1. Navigiere in GitHub zur Hauptseite des Repository.

  2. Klicke unter Deinem Repository-Namen auf Settings (Einstellungen). Schaltfläche „Repository settings" (Repository-Einstellungen)

  3. Under "Danger Zone", to the right of to "Change repository visibility", click Change visibility. Change visibility button

  4. Select a visibility.

    Dialog of options for repository visibility

  5. To verify that you're changing the correct repository's visibility, type the name of the repository you want to change the visibility of.

  6. Click I understand, change repository visibility.

    Confirm change of repository visibility button

Weiterführende Informationen

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Oder, learn how to contribute.