Skip to content

Instantly share code, notes, and snippets.

@StevenMeiklejohn
Created November 7, 2022 14:09
Show Gist options
  • Save StevenMeiklejohn/bd1ba15f46615ba13a2164f33bbc9d0c to your computer and use it in GitHub Desktop.
Save StevenMeiklejohn/bd1ba15f46615ba13a2164f33bbc9d0c to your computer and use it in GitHub Desktop.

Git & GitHub Homework

Local

  • Create a folder in your week_01/day_1 directory
mkdir precourse_recap
cd precourse_recap
  • Initialize a git repository in the folder
git init
  • Create a new file called precourse_recap.py
touch precourse_recap.py
  • In the file, create a simple Python program:

    • create variables of different types
    • call some methods/functions on these variables
    • use some operators (e.g. +, -)
  • Stage the file

git add .
  • Commit the files to the repository
git commit -m "first commit"

Remote - Github

  • Create a new repository

Local

  • Add the Github remote
  • Push to the remote repository
git push origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment