Push existing project to new github repo

Create new github repo Create new project folder as normal Proceed add current project to the newly created repo git init git add . git commit -m "Add existing project files to Git" git remote add origin https://github.com/cameronmcnz/example-website.git git push -u -f origin main This post is imported from: https://thebrownbox.hashnode.dev/push-existing-project-to-new-github-repo

February 3, 2025 · 1 min

How I sync my Hashnode with my Hugo blog

Hashnode provide a visual editor easy to use and create blog. Hashnode also provide auto backup into github in markdown format. So I gonna create blog in hashnode and sync it to my hugo blog Step 1: make a script to convert from hashnode format to hugo format Even they’re both markdown, but both has a special properties to format the blog. So here we have to convert mostly those properties, for the body don’t need to to touch much....

August 13, 2024 · 5 min

How to auto update the created date on a post in Hugo

The basic ideal is that run a script to edit the date of the post before git commit command. Make the post with the special character to update the date Here I’m gonna replace the date in the line has _date:. This make it easy to find and replace. --- title: "This is an template post" _date: Create a script to update the date Not thing special about the script. The hook is located in: ....

August 13, 2024 · 2 min