Describe in your own words how to establish a connection between a local repository and a remote repository on GitHub.
- First, one must initialize a local Git repository
- Add your file to git and commit the work
- Create a github repo
- Set up the remote github repo by using terminal command
git remote add origin <SSH address>
- Check for remote directories by using informative command
git remote
- Push commits up to the remote respository by using terminal command
git push -u origin main
- Bc
-u
sets the default, or upstream branch as main, from now we can just use the commandgit push
to push changes up to github instead ofgit push origin main
(which would also work)