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

Documentation: Error when cloning on Windows #59

Open
Guiguerreiro39 opened this issue Oct 8, 2020 · 3 comments
Open

Documentation: Error when cloning on Windows #59

Guiguerreiro39 opened this issue Oct 8, 2020 · 3 comments

Comments

@Guiguerreiro39
Copy link

Describe the bug
When trying to clone this repo on windows, I've came across an error

error: invalid path '.github/pull_request_template.md.'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/

To Reproduce

  1. Be on a Windows machine
  2. Fork the repo
  3. git clone %repo%

Expected behavior
The repository should be cloned

Solution
Obviously the issue lies on the .github/pull_request_template.md. file so if that file is removed, it should work fine. Otherwise, another possible alternative would be:

  1. git init ToDo-iOS && cd ToDo-iOS
  2. git config core.protectNTFS false
  3. git remote add %repository_url%
  4. git fetch
  5. git checkout origin/master
@aaryankotharii
Copy link
Member

Hi @Guiguerreiro39, yes I suppose the error is due to pull_request_template.md. and deleting it shoulf fix the issues on windows. Thanks for pointing it out!
Would you like to work on this issue?

@Guiguerreiro39
Copy link
Author

Hi @Guiguerreiro39, yes I suppose the error is due to pull_request_template.md. and deleting it shoulf fix the issues on windows. Thanks for pointing it out!
Would you like to work on this issue?

I can work on it.. is that file necessary for anything else?

@aaryankotharii
Copy link
Member

aaryankotharii commented Oct 11, 2020

yes so if you look carefully there are two files in .github directory, one is pull_request_template.md.second is PULL_REQUEST_TEMPLATE.md. You can delete the first one, the second one is being used for the template of pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants