# How to Push Code to GitHub

> To push code to GitHub, click the add icon, name the new repository, and click 'Create a repository'. Then, copy the repository link into your command prompt, copy and paste the repository creation commands, and finally paste the remaining code and press enter.

Canonical: https://livedemo.ai/tutorials/how-to-push-code-to-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a4af4ab56e05a00ff6236/preview?step=1

## Steps

1. Click on the add icon to add a new repository.
2. Add a new repository name.
3. Click 'Create a repository'.
4. Go to your Command prompt and click on it.
5. Highlight the link and copy this link to the command prompt.
6. Paste the link of the file.
7. Highlight and copy the commands to create a new repository.
8. Paste and press enter.
9. Highlight the rest of the codes and paste them into the command.
10. Once you have paste the files, press 'Enter'.
11. That's it! By following these steps, you can push code to GitHub.
