Skip to content

Commit

Permalink
Recommend git reset when cloning repository on Windows fails
Browse files Browse the repository at this point in the history
`git restore --source=HEAD :/` which is currently suggested by Git does not work,
it is unable to restore the files, see git-for-windows/git#3411.
  • Loading branch information
Marcono1234 authored Oct 11, 2021
1 parent 32ecb98 commit 319863e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ On Windows this might fail with "Filename too long". To solve this, run the
following commands in the cloned Git repository:

1. `git config core.longpaths true`
2. `git restore --source=HEAD :/`
2. `git reset --hard`

You can read more about this in the [Git for Windows wiki](https://github.com/git-for-windows/git/wiki/Git-cannot-create-a-file-or-directory-with-a-long-path).

Expand Down

0 comments on commit 319863e

Please sign in to comment.