Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 652 Bytes

github_steps.md

File metadata and controls

17 lines (10 loc) · 652 Bytes

GitHub Steps

Describe in your own words how to establish a connection between a local repository and a remote repository on GitHub.

  1. Create a directory and add files

  2. git initto intialize a Git repo on that directory

  3. git add and git commit changes

  4. Create a GitHub repository

    • make sure it is not a "README"
    • make sure SSH is selected instead of HTTP
  5. git remote add origin [email protected]:USERNAME/REPO_NAME.git to connect the local repo to the remote repo

  6. git push -u origin main to send the current version of the project to the remote repository and sets "main" as the branch where work gets sent