GitHub Overview


GitHub is a Git repository hosting service that provides additional features beyond basic Git functionality. It offers a web-based graphical interface, access control, collaboration tools, and cloud storage for source code. GitHub supports all popular programming languages and facilitates the iteration process. It includes a free plan for individual developers and hosting for open source projects.

Exercise 1: Creating a GitHub Account

  1. Go to https://github.com/join and create an account by providing necessary details.
  2. Verify your account by clicking the verification link sent to your email.
  3. Join a free plan and complete the setup process.
  4. Verify your email address by clicking the verification link in the email sent by GitHub.

Exercise 2: Adding a Project and Repository

  1. Click the "+" symbol and select "New repository."
  2. Provide a name for the repository and choose to initialize it with an empty README.md file.
  3. Click "Create repository" to create the repository.

Exercise 3: Create and Edit a File

Exercise 3a: Edit a File

  1. Click the pencil icon next to the README.md file to edit it.
  2. Add some text to the file.
  3. Scroll down and click "Commit Changes" to save your edits.

Exercise 3b: Create a New File

  1. Click the repository name to return to the master branch.
  2. Click "Add file" and select "Create New file."
  3. Provide the file name and extension (e.g., firstpython.py) and add the necessary lines of code.
  4. Scroll down, add an optional description, and click "Commit new file."

Exercise 4: Upload a File & Commit

  1. Click "Add file" and select "Upload files."
  2. Choose the files you want to upload from your computer.
  3. Once the upload is complete, click "Commit changes" to save the uploaded files.

Summary

In this lab, you learned how to create a GitHub account, create a new repository, add and edit files, upload files, and commit changes using the web interface.

Comments

Popular posts from this blog

Lila's Journey to Becoming a Data Scientist: Her Working Approach on the First Task

Notes on Hiring for Data Science Teams

switch functions