1-Hands-On-Lab(Github_Sign_up_and_Create_Repo)
1-Hands-On-Lab(Github_Sign_up_and_Create_Repo)
Objectives
After completing this lab, you will be able to:
1. Describe GitHub
2. Create a GitHub account
3. Add a project/repository
4. Create and edit a file
5. Upload and commit a file
GitHub overview
Before we learn to use GitHub, let's first review Git. Git is an open-source command-line-based version-
control system for software development. While Git is a command-line tool and you also need to host
and maintain a server on which you can use Git for versioning.
GitHub is a repository hosting service that uses Git. GitHub provides a web-based hosting service with a
graphical user interface(GUI) and git command line interface (CLI). 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.
1. Creating a GitHub account
To create an account in GitHub, complete the following steps:
1. Go to the Join GitHub page and create an account. Note: If you already have a GitHub account,
log in now.
6. After entering the provided verification code, you will see a screen that looks like this. This
indicates that you are logged into your account and you are ready to start using it.
2: Add a project/repository
To add a new repository, complete the following steps:
1. At the top right of the GitHub home page, click on the "+" icon and select New repository.
2. Enter a repository name and select the Add a README file check box under the Initialize this
repository with: option.
3. Click Create repository.
2. Add "It's a markdown file in this repository" text to the file and go to top right and click Commit
changes
3. Enter a file name and extension; for example, firstpython.py. Add the lines of code displayed in
the following image to your file:
4. Scroll to the top right of the page and click Commit changes.You can optionally add a
description of your update (for example, “Adding a new file”). Click Commit changes to create
your new file.
5. Your file is now added to your repository and the repository listing shows when the file was
added or last revised.
1. On your repository page, click Add file and then select Upload files to upload a file.
2. Click choose your files and choose a file from your computer. You can upload any file (for
example, a .txt, .ipynb, or .png file) to the repository.
Summary
Congratulations! In this lab, you have learned how to create a new repository, add a new file, edit a file,
upload a file, and commit your changes. We encourage you to continue to update your repository to
become familiar with the processes that you have learned.
Author details
Authors:
● Romeo Kienzler
● Malika Singla
Other contributors:
● Rav Ahuja
● Upkar Lidder