Search Header Logo
Github and SSH

Github and SSH

Assessment

Presentation

Computers

University

Practice Problem

Hard

Created by

Mandeep Kaur

FREE Resource

12 Slides • 0 Questions

1

media

Adding Version Control (Git) &
Setting Up GitHub with SSH Key

media

2

media

Why Version Control Matters Content

Facilitates collaboration in software development.
Tracks and manages changes to code.
Allows you to revert to previous versions.
Ensures code integrity and history.

3

media

What is Git?

Git is a distributed version control system.
It helps track changes to files.
Key features:

Branching and merging.
Lightweight and fast.
Distributed repository.

Commonly used for software projects.

4

media

Installing Git

1.Download Git: https://git-scm.com.
2.Install Git on your system:

•For Windows: Run the installer.
•For macOS: Use Homebrew (brew install git).

•For Linux: Use package manager (sudo apt install git).

3.Verify installation: git --version.

5

media

Setting Up Git

1. Set your username: git config --global user.name "Your Name".

2. Set your email: git config --global user.email "your.email@example.com".

3. Check the configuration: git config --list.

6

media

What is GitHub?

GitHub is a platform for hosting Git repositories.
Enables collaboration with others.
Provides tools for code review, issue tracking, and CI/CD.
Public and private repositories.

7

media

Creating a GitHub Account

Visit https://github.com.
Sign up with your email address.
Confirm your email and log in.
Explore the dashboard.

8

media

Generating an SSH Key

1.Open terminal (or Git Bash for Windows).
2.Generate an SSH key:

ssh-keygen -t ed25519 -C "your.email@example.com"

3.Follow prompts to save the key (default location is recommended).
4.Start the SSH agent:

eval "$(ssh-agent -s)"

5.Add the SSH key:

ssh-add ~/.ssh/id_ed25519

9

media

Adding SSH Key to GitHub

1.Copy your public SSH key:

cat ~/.ssh/id_ed25519.pub

2.Log in to GitHub and navigate to Settings > SSH and GPG keys.
3.Click New SSH key.
4.Paste the key and give it a title.
5.Save the key.

10

media

Cloning a Repository with SSH

1.Find the repository URL on GitHub (choose SSH option).
2.Clone the repository:

git clone git@github.com:username/repository.git

3.Start collaborating securely.

11

media

Summary

Git enables efficient version control and collaboration.
GitHub provides a platform for hosting and teamwork.
SSH keys secure your GitHub interactions.
Set up Git, GitHub, and SSH to streamline your workflow.

12

media

Additional resources:

• Git documentation: https://git-scm.com/doc.
• GitHub docs: https://docs.github.com.

media

Adding Version Control (Git) &
Setting Up GitHub with SSH Key

media

Show answer

Auto Play

Slide 1 / 12

SLIDE