-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
hugo new site
for existing directory
#4825
Comments
I'm sorry, I 'll show myself out. It's only when I looked in the source code that I noticed the |
A year later and I am out the same door.... |
Me too 😄 |
imho this isn't very obvious. Other projects have the convention of |
Many users seem to stumble over creating new sites in existing non-empty directories. And that `--force` is the necessary option. So I added *See --force* as a hint to the error. Fixes #4825.
hugo new site . --force |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Not something very important, but is there a reason why
hugo new site
would not work with an existing directory? My instinctual workflow is to create a new Github repo, clone it to my computer, and add Hugo to it.The text was updated successfully, but these errors were encountered: