Diese Version von GitHub Enterprise wurde eingestellt am 2021-09-23. Es wird keine Patch-Freigabe vorgenommen, auch nicht für kritische Sicherheitsprobleme. Für eine bessere Leistung, verbesserte Sicherheit und neue Features nimm ein Upgrade auf die neueste Version von GitHub Enterprise vor. Wende Dich an den GitHub Enterprise-Support, um Hilfe beim Upgrade zu erhalten.

Deleting files in a repository

You can delete an individual file in your repository on GitHub Enterprise Server.

People with write permissions can delete files in a repository.

About file deletion

You can delete an individual file in your repository.

If you try to delete a file in a repository that you don’t have write permissions to, we'll fork the project to your user account and help you send a pull request to the original repository after you commit your change. Weitere Informationen findest Du unter „Informationen zu Pull Requests.“

If the file you deleted contains sensitive data, the data will still be available in the repository's Git history. To completely remove the file from GitHub Enterprise Server, you must remove the file from your repository's history. Weitere Informationen finden Sie unter „Sensible Daten aus einem Repository entfernen“.

Deleting a file

  1. Navigiere zu der Datei in Deinem Repository, die Du löschen möchtest.

  2. Klicke oben in der Datei auf .

  3. Am Ende der Seite schreibe eine kurze, aussagekräftige Commit-Mitteilung, welche die Änderung beschreibt, welche Du an der Datei vornimmst. Du kannst den Commit in der Commit-Mitteilung mehr als einem Autor zuordnen. Weitere Informationen findest Du unter "Erstellen eines Commit mit mehreren Co-Autoren" Commit-Mitteilung für Deine Änderung

  4. Lege unter den Commit-Mitteilungsfeldern fest, ob Du Deinen Commit zum aktuellen Branch oder zu einem neuen Branch hinzufügen möchtest. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. Weitere Informationen findest Du unter „Erstellen eines neuen Pull Requests." Branch-Optionen für Commit

  5. Klicke auf Propose file change (Dateiänderung vorschlagen). Schaltfläche „Propose file change" (Dateiänderung vorschlagen)