mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 06:16:03 +02:00
Introduce Git Revert functionality to SCM-Manager
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
BIN
docs/de/user/repo/assets/repository-code-changeset-revert.png
Normal file
BIN
docs/de/user/repo/assets/repository-code-changeset-revert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 257 KiB |
@@ -84,6 +84,24 @@ Es muss lediglich ein gewünschter Name angegeben werden, welcher die gleichen F
|
||||
|
||||

|
||||
|
||||
#### Reverts
|
||||
In Changesets innerhalb von Git-Repositories steht in der oberen rechten Ecke (unter "Tag erstellen") ein Knopf zum Reverten des Commits.
|
||||
|
||||
**Hinweis:** Der Revert-Knopf wird nur dann angezeigt, wenn der Commit genau einen Vorgänger hat.
|
||||
Commits mit mehr als einem Vorgänger (z.B. Merge-Commits) und initiale Commits ohne Vorgänger können nicht zurückgesetzt werden.
|
||||
|
||||

|
||||
|
||||
Für einen Revert ist nach Drücken des Knopfs ein Branch auszuwählen, auf welchem der Revert angewendet wird.
|
||||
Gelangt man aus der Commit-Übersicht eines Branches in den Commit, ist die Auswahl automatisch vorgenommen.
|
||||
|
||||
Ebenso kann eine Commit-Nachricht für den Revert angegeben werden.
|
||||
Sie ist automatisch ausgefüllt; es empfiehlt sich jedoch aus Gründen der Übersichtlichkeit, in dieser den Revert zu begründen.
|
||||
|
||||
Mit Drücken von "Revert" wird man auf den neu erstellten Revert-Commit automatisch weitergeleitet, sofern kein Fehler auftritt.
|
||||
|
||||

|
||||
|
||||
### Datei Details
|
||||
Nach einem Klick auf eine Datei in den Sources landet man in der Detailansicht der Datei. Dabei sind je nach Dateiformat unterschiedliche Ansichten zu sehen:
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
BIN
docs/en/user/repo/assets/repository-code-changeset-revert.png
Normal file
BIN
docs/en/user/repo/assets/repository-code-changeset-revert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 213 KiB |
@@ -85,6 +85,24 @@ Only a name has to be provided that meets the same formatting conditions as bran
|
||||
|
||||

|
||||
|
||||
#### Reverts
|
||||
Changesets within Git repositories provide a "Revert" button at the upper right-hand corner (beneath "Create Tag").
|
||||
|
||||
**Note:** The revert button is only displayed on commits with exactly one parent element.
|
||||
Commits with multiple predecessors (e.g. merge commits) and initial commits without parent cannot be reverted.
|
||||
|
||||

|
||||
|
||||
After pressing the button and before reverting a changeset, you need to first select the branch where it is applied upon.
|
||||
This selection is already filled out if you reached the changeset by the changeset overview of a specific branch.
|
||||
|
||||
Furthermore, you may type a commit message for the revert.
|
||||
It is filled out with a default message; however, it is recommended to choose a reasonable custom message in order to keep the changeset history comprehensible.
|
||||
|
||||
By pressing "Revert", you're going to be forwarded to the newly created commit including the revert if no error occurs.
|
||||
|
||||

|
||||
|
||||
### File Details
|
||||
After clicking on a file in the sources, the details of the file are shown. Depending on the format of the file, there are different views:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user