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

Can't Add Any Extras When Creating the GitHub Project #55

Open
alexfinnarn opened this issue Jun 24, 2019 · 5 comments
Open

Can't Add Any Extras When Creating the GitHub Project #55

alexfinnarn opened this issue Jun 24, 2019 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alexfinnarn
Copy link
Contributor

Describe the bug

GitHub provides a few options when configuring a new repo like: license, .gitignore file, a README.md, and the Rennovate plugin. If you want to install any of these by default, which I usually do, then you get an error about the remote having newer content.

To Reproduce
Steps to reproduce the behavior:

  1. Create a repo with a readme during the script
  2. See the error.

Screenshots

Screen Shot 2019-06-23 at 8 57 04 PM

Screen Shot 2019-06-23 at 7 48 38 PM

@alexfinnarn alexfinnarn added the bug Something isn't working label Jun 24, 2019
@alexfinnarn
Copy link
Contributor Author

https://github.com/mathieudutour/medium-to-own-blog/blob/master/bin/medium-to-own-blog.js#L148

Why not `git clone ${remoteURL} && git add . && git commit -m "first commit 🎉" since the repo must exist at that point in the script?

@mathieudutour
Copy link
Owner

git clone is going to create a subfolder. I could git pull but there will be conflicts anyway. I kind of assume that if you use a repo with some content inside, the safest thing to do is to fail. There is no telling what kind of weird stuff might happen if we try to automatically fix the conflicts or force push

@alexfinnarn
Copy link
Contributor Author

Makes sense. Do you think it is a good idea to add a note to the documentation somewhere? I can make a PR if you wish or close the issue if not. The gif/video creates one without any additional configuration, but a non-sighted user won't be able to see that.

I think it would be most appropriate to add a line to https://github.com/mathieudutour/medium-to-own-blog/blob/master/bin/medium-to-own-blog.js#L94.

@mathieudutour
Copy link
Owner

yep, good idea! Happy to accept a PR to clarify that

@mathieudutour mathieudutour added good first issue Good for newcomers help wanted Extra attention is needed labels Aug 1, 2019
@alexfinnarn
Copy link
Contributor Author

Not sure of how to format this the best, but the language makes sense to me.

mathieudutour added a commit that referenced this issue Mar 15, 2020
Issue #55: Can't Add Any Extras When Creating the GitHub Project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants