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

`hugo new site` for existing directory #4825

Closed
danburzo opened this issue Jun 6, 2018 · 4 comments · Fixed by #6494
Closed

`hugo new site` for existing directory #4825

danburzo opened this issue Jun 6, 2018 · 4 comments · Fixed by #6494

Comments

@danburzo
Copy link

@danburzo danburzo commented Jun 6, 2018

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.

@danburzo

This comment has been minimized.

Copy link
Author

@danburzo danburzo commented Jun 6, 2018

I'm sorry, I 'll show myself out. It's only when I looked in the source code that I noticed the --force flag. 😬

@danburzo danburzo closed this Jun 6, 2018
@netbuddha

This comment has been minimized.

Copy link

@netbuddha netbuddha commented Jul 12, 2019

I'm sorry, I 'll show myself out. It's only when I looked in the source code that I noticed the --force flag. 😬

A year later and I am out the same door....

@magicmarvman

This comment has been minimized.

Copy link

@magicmarvman magicmarvman commented Jul 15, 2019

Me too 😄

@BrendanBall

This comment has been minimized.

Copy link

@BrendanBall BrendanBall commented Sep 5, 2019

imho this isn't very obvious. Other projects have the convention of --here so that it creates in the current directory instead of creating a new subdirectory.

YaguraStation added a commit to YaguraStation/hugo that referenced this issue Nov 10, 2019
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 gohugoio#4825.
bep added a commit that referenced this issue Nov 11, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.