Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 644 Bytes

File metadata and controls

51 lines (34 loc) · 644 Bytes

Git & GitHub Lab

Local

  • Create a folder in your week_01/day_1 directory
mkdir guessing_game
cd guessing_game
  • Initialize a git repository in the folder
git init
  • Create a new file called guessing_game.py
touch guessing_game.py
  • In the file, create a simple Python guessing game using:
  1. User Input
  2. If-Else statement
  • Stage the file
git add .
  • Commit the files to the repository
git commit -m "first commit"

Remote - Github

  • Create a new repository called "guessing-game"

Local

  • Add the Github remote
  • Push to the remote repository
git push origin main