Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clean -xfd and now corrupted Flutter Installation. #62175

Closed
Andrious opened this issue Jul 24, 2020 · 4 comments
Closed

git clean -xfd and now corrupted Flutter Installation. #62175

Andrious opened this issue Jul 24, 2020 · 4 comments

Comments

@Andrious
Copy link

Steps to Reproduce

  1. In the attempt to fix the error:

fatal: Not possible to fast-forward, aborting.

I ran the Instructions how to get Flutter installation back to a clean state

It involved running the following git commands.

git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor
  1. ...I then ran flutter doctor

I suspect I should not have run those instructions in the flutter installation directory.
Looks to me the installation is now nice and damaged.

Admittedly, I have little experience with git, and don't have a clue what to do next to recover from this.
terminal
.

Logs

N/A
@stuartmorgan
Copy link
Contributor

I suspect I should not have run those instructions in the flutter installation directory.

That is where you should have run them. However, it looks like you had errors at one of the steps that you ignored, because the failed URL shows that you have git conflict markers it at least one file in your tree still.

You'll need to use git status to figure out where you still have issues, make sure all of those cases are reverted to a pristine state, and then git pull again.

@Andrious
Copy link
Author

Ironically, I did run git status soon after posting this issue. Again, not having enough confidence in working with git, I decided to simply set aside the 'flutter directory' (rebooted and renamed the folder) and downloaded the file, flutter_windows_1.17.5-stable.zip.

In other words, I simply installed Flutter again.
I'll close this issue shortly. However, I'll see if things have truly returned to normal.
Happily, I had no intention of downloading my own local repo. of Flutter.

@VladyslavBondarenko
Copy link

@Andrious closing as solved. Please comment if you disagree and still have problems with this and I'll reopen

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants