Pushing to Remote Repository
Push Your Work to GitHub
-
Finally, let’s upload your work to the GitHub repository you created at the start of this tutorial.
# Push changes to remote using CLI git push
To be more specific, you can type
git push origin main
. Since you are not dealing with another branch (other thanmain
) or a different remote, you can leave it asgit push
to save a few keystrokes.“Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.”
**Note:** If you receive a message that says “Support for password authentication was removed on August 13, 2021. Please use a personal access token instead,” at this point, you cloned with HTTPS, not SSH.What is origin?
The origin is the default name given to the remote repository you cloned from. You can view the remote repositories using `git remote -v`. -
Type
git status
one final time. It should output “Your branch is up to date with ‘origin/main’. Nothing to commit, working tree clean”.# Check repo status again to confirm local repo is up to date with remote using CLI git status
-
When you reload the repository on GitHub, you should see the
README.md
andgdsc.txt
files that you just pushed there from your local machine.