next thing would be to commit using and then push to what ever branch you want to push

git commit -m 'Some message about the change'

git push origin 'branch-name'
Answer from Shani on Stack Overflow
๐ŸŒ
Zapier
zapier.com โ€บ productivity โ€บ app tutorials
How to push to GitHub | Zapier
April 24, 2025 - Once you've added your files to your directory and are ready to push to GitHub, in your Bash window, enter git add . to select all the files in your repository. Enter git commit -m "[commit message]" to save the changes to your local repository.
๐ŸŒ
Reddit
reddit.com โ€บ r/git โ€บ pushing to github via the terminal
r/git on Reddit: Pushing to GitHub via the terminal
March 31, 2023 -

Hey, Iโ€™m a new software developer looking to build a portfolio. When pushing to GitHub via the terminal, am I supposed to push the root folder of my project onto the repository? Or is it specific files or sub folders? Are there any best practices for having a presentable repository? And lastly, what do I add in the ReadMe file?

Discussions

how to push to git from Terminal / Command Line - Stack Overflow
I added a file into the folder for Git uploading. I can see the folder in the SourceTree under unstaged. How can I push the file to online storage with terminal commands? I figured it out I need to More on stackoverflow.com
๐ŸŒ stackoverflow.com
github - How to push my changes back to the source code in git - Stack Overflow
I forked a project in github and then did a git clone on this project to get all the source code to my machine. I have made some modifications to the source code and my questions are:- How to comm... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Pushing to GitHub via the terminal
Here's where to start reading about git: https://www.git-scm.com/doc . From the Pro Git book to the reference manual, it's the site that will be your best git friend from the first day and through the most complex problems and advanced usage. More on reddit.com
๐ŸŒ r/git
15
0
March 31, 2023
How do I push to GitHub from command line without using Github login on the prompt?

You want to connect via ssh key, cf https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh

Edit the url attribute of the [remote "origin"] section in your repository .git/config file to switch the connection protocol.

More on reddit.com
๐ŸŒ r/git
10
13
January 4, 2021
๐ŸŒ
GitHub
github.com โ€บ orgs โ€บ community โ€บ discussions โ€บ 68237
Pushing Code into a github Repo ยท community ยท Discussion #68237
Make your code changes and commit them as before using git add . and git commit -m "Your commit message here". Link Your Local Repository to Your GitHub Repository: Go back to your GitHub repository online.
๐ŸŒ
GitHub
docs.github.com โ€บ en โ€บ get-started โ€บ using-git โ€บ pushing-commits-to-a-remote-repository
Pushing commits to a remote repository - GitHub Docs
> remote: Total 62 (delta 27), reused 44 (delta 9) > Unpacking objects: 100% (62/62), done. > From https://github.com/OCTOCAT/REPO > * [new branch] main -> upstream/main ยท When you're done making local changes, you can push your local branch to GitHub and initiate a pull request.
๐ŸŒ
Graphite
graphite.com โ€บ guides โ€บ how-to-push-to-github
How to push to GitHub - Graphite
Learn the various ways to push your code from your local repository to GitHub using the command line and VSCode, including pushing changes, branches, and files.
Find elsewhere
๐ŸŒ
Git Tower
git-tower.com โ€บ learn โ€บ git faq โ€บ how to push to github
How to Push to GitHub | Learn Version Control with Git
1 month ago - In the dialog, you can enter a ... now be connected with your local repository ยท from now on, you can simply use the "Push" button in the toolbar to upload new changes to the remote on GitHub...
๐ŸŒ
GitHub
github.com โ€บ git-guides โ€บ git-push
Git Guides - git push ยท GitHub
As best practice, it's important to run the git pull command before you push any new changes to the remote branch. This will update your local branch with any new changes that may have been pushed to the remote from other contributors.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ git-push-pull
Git Push and Pull Tutorial | DataCamp
July 23, 2019 - ... In the above code, origin is the remote name, and the remote URL is "https://github.com/Olivia-Smithcoder100/FaceDetection.git". You can see the remote as GitHub in this case, and GitHub provides the URL for adding to the remote repository. git push -u origin main is used for pushing local ...
๐ŸŒ
Atlassian
atlassian.com โ€บ git โ€บ tutorials โ€บ syncing โ€บ git-push
Git Push | Atlassian Git Tutorial
The syncing commands operate on remote branches which are configured using the git remote command. git push can be considered and 'upload' command whereas, git fetch and git pull can be thought of as 'download' commands. Once changesets have been moved via a download or upload a git merge may ...
๐ŸŒ
CircleCI
circleci.com โ€บ blog โ€บ pushing-a-project-to-github
Pushing a project to GitHub - CircleCI
November 23, 2020 - Your index.html file is now listed in the online repository. You can make more updates to the repository by running these commands in order: git add . git commit -m "Commit message" git push origin main
๐ŸŒ
HubSpot
blog.hubspot.com โ€บ home โ€บ website โ€บ what is github? (and what is it used for?)
How to Push to GitHub: A Step-by-Step Guide
April 1, 2024 - In it, paste the text Hello, world! and save the file. In the terminal, navigate to inside your cloned repository. Then, type git add . and press Enter. This prepares all files in your cloned repository to be pushed.
๐ŸŒ
Liquid Web
liquidweb.com โ€บ home โ€บ how to commit and push changes from ubuntu 18.04 to github
How to Commit and Push Changes from Ubuntu 18.04 to GitHub
February 20, 2025 - Total 3 (delta 0), reused 0 (delta 0) To https://github.com/drsinger1/test.git cd5837c..a19b483 master -> master Branch 'master' set up to track remote branch 'master' from 'origin'. root@merovingian2:~/git_environment/test# To verify the script commit on GitHub, log into the account. Refresh the screen for the particular repository if you are already logged in. It shows both the file name and the description provided in step 4. This tutorial outlined steps regarding how to commit and push changes from your Ubuntu 18.04 server to your GitHub repository.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-push-an-existing-project-to-github
How to Push an Existing Project to GitHub | DigitalOcean
October 8, 2025 - From your terminal, run the following commands after navigating to the folder you would like to add. Run the following command to confirm the repository was initialized correctly: git rev-parse --is-inside-work-tree && ls -a | grep .git ยท You should see true and a .git directory listed. Make sure you are in the root directory of the project you want to push to GitHub and run:
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ git โ€บ how-to-push-anything-to-github-using-git-bash
How to Push Anything to GitHub using Git Bash? - GeeksforGeeks
July 23, 2025 - Now it is time to commit these changes we can do this by the command โ€œgit commit -m โ€œa valid message โ€โ€. If we run the git status command it will show something like. This is the last step now write the command โ€œgit push origin mainโ€ and ...
๐ŸŒ
Everhour
everhour.com โ€บ github โ€บ how to push to github: complete step-by-step guide
How to Push to GitHub from VS Code or Terminal
December 22, 2025 - cd your-project-folder git init git add . git commit -m "Initial commit" git remote add origin https://github.com/yourusername/repo-name.git git branch -M main git push -u origin main ...
๐ŸŒ
Graphite
staging-graphite-splash.vercel.app โ€บ guides โ€บ how-to-push-to-github
How to push to GitHub
Learn the various ways to push your code from your local repository to GitHub using the command line and VSCode, including pushing changes, branches, and files.