Skip to content

Commit

Permalink
Add Troubleshooting for Git.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nourepide committed Dec 4, 2023
1 parent f589751 commit db949a9
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions Writerside/topics/Updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This section provides comprehensive instructions on how to **update Allor**, whe
If you wish to **modify this behavior** or **disable auto-update**, please refer to the <a href="Configuration.md" anchor="updates">
configuration</a> page.

### Troubleshooting
### Troubleshooting { id="troubleshooting_auto_update" }

If you have problems with auto-update, you can switch it to **hard mode** in configuration.

Expand All @@ -30,9 +30,9 @@ This **does NOT** affect ComfyUI, other plugins, last update timestamp and the A

<procedure>

See how to [Work with Terminal](Work-with-Terminal.md).

1. **Open Terminal**: Navigate to the `ComfyUI/custom_nodes/ComfyUI-Allor` directory.

You can do this by opening the Terminal and using the `cd` command.

2. **Update the Repository**: Update the repository by entering the following command:

Expand All @@ -47,15 +47,9 @@ This **does NOT** affect ComfyUI, other plugins, last update timestamp and the A

<procedure>

1. **Open Command Prompt**: Navigate to the `ComfyUI\custom_nodes\ComfyUI-Allor` folder.

You can do this by pressing <shortcut>Win+R</shortcut> and typing `cmd`.

To change the drive, type the letter of the desired drive followed by a colon.
For example, `D:` will switch you to the D drive.
See how to [Work with Terminal](Work-with-Terminal.md).

To move to another folder, use the cd command followed by the folder path.
For example, `cd ComfyUI` will take you to the ComfyUI folder.
1. **Open Command Prompt**: Navigate to the `ComfyUI\custom_nodes\ComfyUI-Allor` folder.

2. **Update the Repository**: Update the repository by entering the following command:

Expand All @@ -67,3 +61,25 @@ This **does NOT** affect ComfyUI, other plugins, last update timestamp and the A

</tab>
</tabs>

### Troubleshooting { id="troubleshooting_git" }

As with [auto-update](Updating.md#troubleshooting_auto_update), you can reset the **Allor** repository to the latest state if you find problems.

<procedure>

1. Get the current state of the remote repository:

```Bash
git fetch origin main
```

2. Reset the current state to the remote repository level

```Bash
git reset --hard origin/main
```

</procedure>

Be **careful** when using these **commands**, as they completely **remove** all manual **changes** made by the user to **Allor**.

0 comments on commit db949a9

Please sign in to comment.