Artikelversion: GitHub.com
Dateien in Ihrem Repository bearbeiten
Sie können Dateien direkt auf GitHub in jedem Ihrer Repositorys mit dem Datei-Editor bearbeiten.
Tipp: If a repository has any protected branches, you can't edit or upload files in the protected branch using GitHub. For more information, see “About protected branches."
You can use GitHub Desktop to move your changes to a new branch and commit them. For more information, see "Committing and reviewing changes to your project."
Hinweis: Der Datei-Editor von GitHub verwendet CodeMirror.
-
Navigieren Sie in Ihrem Repository zu der Datei, die Sie bearbeiten möchten.
-
Klicken Sie in der oberen rechten Ecke der Dateiansicht auf , um den Datei-Editor zu öffnen.

-
Nehmen Sie auf der Registerkarte Edit file (Datei bearbeiten) alle erforderlichen Änderungen an der Datei vor.

-
Above the new content, click Preview changes.

-
At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see "Creating a commit with multiple co-authors."

-
Klicken Sie unterhalb der Commit-Mitteilungsfelder auf das Dropdownmenü für E-Mail-Adressen, und wählen Sie die Git-Autor-E-Mail-Adresse aus. Nur verifizierte E-Mail-Adressen werden in diesem Dropdownmenü angezeigt. Wenn Sie den Datenschutz für E-Mail-Adressen aktiviert haben, dann ist
<username>@users.noreply.github.comdie standardmäßige Commit-Autor-E-Mail-Adresse. Weitere Informationen finden Sie unter „Commit-E-Mail-Adresse festlegen“.
-
Legen Sie unter den Commit-Mitteilungsfeldern fest, ob Sie Ihr Commit zum aktuellen Branch oder zu einem neuen Branch hinzufügen möchten. If your current branch is
master, you should choose to create a new branch for your commit and then create a pull request. For more information, see "Creating a new pull request."
-
Klicken Sie auf Propose file change (Dateiänderung vorschlagen).
