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
- Go to https://github.com/join and create an account by providing necessary details.
- Verify your account by clicking the verification link sent to your email.
- Join a free plan and complete the setup process.
- Verify your email address by clicking the verification link in the email sent by GitHub.
Exercise 2: Adding a Project and Repository
- Click the "+" symbol and select "New repository."
- Provide a name for the repository and choose to initialize it with an empty README.md file.
- Click "Create repository" to create the repository.
Exercise 3: Create and Edit a File
Exercise 3a: Edit a File
- Click the pencil icon next to the README.md file to edit it.
- Add some text to the file.
- Scroll down and click "Commit Changes" to save your edits.
Exercise 3b: Create a New File
- Click the repository name to return to the master branch.
- Click "Add file" and select "Create New file."
- Provide the file name and extension (e.g., firstpython.py) and add the necessary lines of code.
- Scroll down, add an optional description, and click "Commit new file."
Exercise 4: Upload a File & Commit
- Click "Add file" and select "Upload files."
- Choose the files you want to upload from your computer.
- 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
Post a Comment