0% found this document useful (0 votes)
35 views

Hands-On Lab - Getting Started With GitHub

This document provides steps to create a GitHub account, add a project or repository, edit and create files, and upload and commit files. It describes GitHub and its features. The exercises guide you through creating an account, repository, editing, creating and uploading files, and committing changes.

Uploaded by

Maziyar Gh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Hands-On Lab - Getting Started With GitHub

This document provides steps to create a GitHub account, add a project or repository, edit and create files, and upload and commit files. It describes GitHub and its features. The exercises guide you through creating an account, repository, editing, creating and uploading files, and committing changes.

Uploaded by

Maziyar Gh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

6/21/23, 9:36 PM about:blank

Hands-on Lab: Getting Started with GitHub


Effort: 20 min

In this lab, you will get started with GitHub by creating a GitHub account and project and adding a file to it using its Web interface.

Objectives
After completing this lab, you will be able to:

0. Describe GitHub
1. Create a GitHub account
2. Add a Project / Repo
3. Edit / Create a file
4. Upload a file & Commit

GitHub Overview
First, let us introduce to GitHub. GitHub in simple words is a collection of folders and files. It is a Git repository hosting service, but it adds many of its own features.
While Git is a command-line tool and a server needs to be hosted and maintained via command line as well, GitHub provides this Git server for you and a Web-based
graphical interface. It also provides access control and several collaboration features, such as wikis and basic task management tools for every project. GitHub provides
cloud storage for source code, supports all popular programming languages, and streamlines the iteration process. GitHub includes a free plan for individual developers
and for hosting open source projects.

Exercise 1: Creating a GitHub Account


Please follow the steps given below to create an account in GitHub:

Step 1: Create an account: https://github.com/join

NOTE: If you already have a GitHub account, you can skip this step and simply login to your account.

Step 2: Provide the necessary details to create an account as shown below:

about:blank 1/9
6/21/23, 9:36 PM about:blank

and click Create account.

Step 3: Click Verify to verify the account and click Done

Step 4: After verification, click Join a Free Plan

about:blank 2/9
6/21/23, 9:36 PM about:blank

Step 5: Select the details as shown below and click Complete Setup

Step 6: Go to your email, find the verification email from GitHub, and click on the link/button in that email to verify your email.

NOTE: If you do not receive verification email, click Resend verification email.

Email is verified

about:blank 3/9
6/21/23, 9:36 PM about:blank

Exercise 2: Adding a Project / Repo


Step 1: Click on the + symbol and click New repository.

Step 2: Provide a repository a name and initialize with the empty README.md file.

about:blank 4/9
6/21/23, 9:36 PM about:blank

and click Create repository.

Now, you will be redirected to the repository you have created.

Let’s start editing the repository.

Exercise 3: Create / edit a file


Exercise 3a: Edit a file

Step 1: Once the repository is created, the root folder of your repository is listed by default and it has just one file ReadMe.md. Click on the pencil icon to edit the file.

Step 2: Add text to file.

about:blank 5/9
6/21/23, 9:36 PM about:blank

Step 3: Scroll down the page after adding the text and click Commit Changes.

Now, check your file is edited with the new text.

Exercise 3b: Create a new file


Step 1: Click on the repository name to go back to the master branch like in this testrepo.

Step 2: Click Add file and select Create New file to create a file in the repository.

about:blank 6/9
6/21/23, 9:36 PM about:blank

Step 3: Provide the file name and the extension of the file. For example, firstpython.py and add the lines.

Step 4: Scroll down the page after adding the text. Add description of the file (optional) and click Commit new file.

Step 5: Your file is now added to your repository and the repository listing shows when the file was added/changed.

Exercise 4: Upload a file & Commit


Step 1: Click Add file and select Upload files to upload a file (Upload any .txt,.ipynb, .png file) in the repository from the local computer.

about:blank 7/9
6/21/23, 9:36 PM about:blank

Step 2: Click on choose your files and choose any files from your computer.

Step 3: Once the file finishes uploading, click on Commit Changes

Step 4: Now, your file is uploaded in the repository.

about:blank 8/9
6/21/23, 9:36 PM about:blank

Summary
In this document, you have learned how to create a new repository, adding a new file, editing a file, and uploading a file in a repository and commit the changes.

Author(s)
Romeo Kienzler

Malika Singla

Other Contributor(s)
Rav Ahuja

Changelog
Date Version Changed by Change Description
2021-06-03 0.6 Lakshmi Holla Forked from Previous version
2020-07-16 0.5 Malika Singla Spell check, step number added
2020-07-14 0.4 Rav Ahuja Changed logo, updated effort, title, intro, objectives, added Authors and Changelog
2020-07-13 0.3 Malika Singla Added to GitLab and made some formatting changes, added objectives, etc.
2020-07-03 0.2 Malika Singla Ported to markdown and added GitHub account signup, new screenshots, etc.
2020-06-30 0.1 Romeo Kienzler Drafted initial version

© IBM Corporation 2021. All rights reserved.

about:blank 9/9

You might also like