SvelteKit Demo

Fork tylermlui/SvelteKit-Demo

Forking example

Fork the repository by clicking on the fork button on the top of tylerlui/SvelteKitDemo. This will create a copy of this repository in your account.

Clone the repository

Cloning the github repo visual example

Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button and then click the copy to clipboard icon.

Copy the repo URL visual example

Open a terminal and run the following git command: git clone "url you just copied" (without the quotation marks).

Create a branch

Change to the repository directory on your computer (if you are not already there): cd SvelteKitDemo Now create a branch using the git switch command: git switch -c your-new-branch-name For example: git switch -c add-ethanthatonekid

Make necessary changes

Create a new folder inside src/routes name this folder your github username. Once you create the folder it should be in this structure src/routes/yourusernamehere. Then add a +page.svelte file within this, and start adding changes!

Please refer to any of the example folder and file at /src/routes/tylermlui

Commit those changes

Add those changes to the branch you created using the git add command:

git add .

And commit them with a short description, using the git commit command (replace gh-user with your GitHub username):

git commit -m "Added gh-user route"

Push changes to GitHub

Push your changes using the command git push:

git push origin -u add-your-branch-name

replacing <add-your-branch-name> with the name of the branch you created earlier.

Submit your changes for review

If you go to your repository on GitHub, you'll see a Compare & pull request button. Click on that button.

Compare and pull request visual example

Now submit the pull request.

Creating the pull request visual example

Soon, someone will be merging all your changes into the master branch of this project. You will get a notification email once the changes have been merged.


Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes