Describe in your own words how to establish a connection between a local repository and a remote repository on GitHub.
To establish a connection between a local repository and a remote repository on GitHub, on must follow these steps
- Create a directory in Terminal and add files to that directory
- Initialize a Git repository in the selected directory using 'git init'
- Add your file by using 'git add '
- commit your work using 'git commit -m "Message here"
- Create a GitHub repository with the same name as your directory
- Run 'git remote add origin '
- Run 'git branch -M main' if you have not already configured Git to name the default branch 'main'
- Run 'git push -u origin main' to send the current version of the porject to the remote repository, and to ste the 'main' branch as the deafualt branch to send work to.
- Refresh GitHub browser tab, and if done correctly, you should see the new repository!