Panchovix / stable-diffusion-webui-reForge

GNU Affero General Public License v3.0
350 stars 17 forks source link

How to switch back to Forge #121

Closed navarisun1982 closed 2 months ago

navarisun1982 commented 2 months ago

Is there an existing issue for this?

What would your feature do ?

Hello, i want to switch back to forge, can this be done?

Proposed workflow

switch from reforge latest version

Additional information

No response

metapea commented 2 months ago

It's the same as reForge git install. Part 1:

git remote add reForge https://github.com/Panchovix/stable-diffusion-webui-reForge
git branch Panchovix/main
git checkout Panchovix/main

Part 2:

git fetch reForge
git branch -u reForge/main
git stash
git pull

If you already installed git and Forge ("remote add forge"/part 1) all you really need to do is part 2, replace reForge with forge If you downloaded from the one-click installation package then replace reForge with origin for part 2 (use git gui to check the remote's name if needed) Info: https://github.com/continue-revolution/sd-webui-animatediff/blob/forge/master/docs/how-to-use.md#you-have-a1111-and-you-know-git

navarisun1982 commented 2 months ago

all done ok, but when i type the last command (git pull), it gives me this error message

error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
metapea commented 2 months ago

all done ok, but when i type the last command (git pull), it gives me this error message

error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.

https://stackoverflow.com/questions/26376832/why-does-git-say-pull-is-not-possible-because-you-have-unmerged-files

navarisun1982 commented 2 months ago

this worked for me :

git fetch --all

git reset --hard origin/main

thx so much for help

metapea commented 2 months ago

ok, don't forget to close the issues