Day 9

  • Final Project Preparation
  • GitHub - Let's push our site!
  • Create SSH Key & Link Git with GitHub
  • Git Commands
    • git init
    • git remote add origin
    • git commit -m " "
    • git push -u origin branch
  • Push Up Final Project to GitHub
  • Work on Final
  • Generate SSH Key
  • Add SSH Key to GitHub
  • May need to set up git username and password link here
    • $ git config --global user.name "John Doe"
    • $ git config --global user.email johndoe@example.com
  • Initial Git Commands - Open your Git terminal
    • git init - initializes project
    • git remote add origin “paste SSH Key”
    • ***git remote -v*** (optional) - checks our fetch and pull
    • git add . - adds ALL of our code
    • ***git status*** (optional) - allows us to see where we are
    • git commit -m “first commit”
    • git push -u origin master - -u stands for upstream, only use for first commit! Master is the branch we are on
    • Ask questions if you have them! We will be walking around to help
  • Additional Git Commits - Commit often
    • git add . - adds all of our code
    • git commit -m “commit message” - this message will be specific to the changes you made in your code
    • git push