# How to Push to GitHub from Terminal

> To push to GitHub from the terminal, access settings to add an SSH key, create a new repository, set it up using HTTPS, open Git Bash for your files, and execute the command lines to complete the push.

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

## Steps

1. Click on your profile icon.
2. Select 'Settings' from the drop-down menu.
3. Go to the 'Access' section, select 'SSH and GPG keys'.
4. Click 'New SSH key' to add more keys.
5. Click the add icon to create a new repository.
6. Name your repository.
7. Click 'Create repository'.
8. Click 'HTTPS' to set up your repository.
9. Click on the files or highlight the files and select ''Git Bash Here'. These are the files that need to be push to the repository.
10. The highlighted code is the whole file of the files.
11. Use the command lines to create a new repository. Once done, click 'Enter'.
12. That's it! By following these steps, you can push GitHub from the terminal.
