Quick summary
This tutorial walks you through how to push code to GitHub from the terminal step by step, covering SSH key setup, repository creation, and using Git Bash commands to complete the push.
Steps
- Click on your profile icon in GitHub.
- Select Settings from the drop-down menu.
- Go to the Access section and select SSH and GPG keys.
- Click New SSH key to add a new key.
- Click the add icon to create a new repository.
- Name your repository in the provided field.
- Click Create repository to finalize it.
- Click HTTPS to set up your repository connection.
- Select your files and open Git Bash Here to prepare the files for pushing.
- Review the highlighted code representing the full file contents to be pushed.
- Use the command lines to initialize and create a new repository, then press Enter.
- Your files are now successfully pushed to GitHub from the terminal.



