How to make my source code available

Hi like to be able to share my source code on the forum. Can I clone a theme into my github repository and then continue to develop it adding pages and templates - any instructions on how to do this?
Or do I need to download to localhost and then upload to github - what’s the recommended / easiest method? Pointer to good tutorials appreciated.

Thanks
David

You need to read up on Git.

In your local Hugo project folder you will run the following commands:

git init to initialize Git

git remote add origin https://github.com/user/repo.git to add a remote origin.

Then you need to commit your work and push it to the remote on GitHub.

Do read the Docs on Git: Git - Documentation

And for GitHub: https://help.github.com/

You cannot do the above.

1 Like

Thanks for the clear explanation

David