Reputation: 119
I have been going in circles for days and would appreciate your help.
I used the Hugo quickstart guide to create a repo on my local machine: https://gohugo.io/getting-started/quick-start/
I cannot figure out how to push this to either Github or Bitbucket. My preference is Bitbucket bc they have private repos, but I ran into many SSH errors. So I thought I'd try Github and once that was up, to import that repo into Bitbucket, but I can't get it working on Github either.
This is what I was able to push to Github: screenshot
It's missing the rest of the repository (archetypes, config, etc). I can see the files but I cannot for the life of me figure out how to deploy it to either Bitbucket or Github. Please help!
Upvotes: 1
Views: 444
Reputation: 1326666
Make sure you have created a local git repo at the root of your Hugo project: there should be a .git subfolder.
Make sure there is no other .git folder in the children or parent folders of that project.
Check your git remote -v
output: you can use an SSH or HTTPS URL for your remote.
Check if you have any .gitignore files which might prevent adding the rest of the folder contents.
Finally, don't forget a branch new Hugo project has mainly empty folders: and git add
won't add empty folders. Start adding some files in it first.
Upvotes: 1