
Github and SSH
Presentation
•
Computers
•
University
•
Practice Problem
•
Hard
Mandeep Kaur
FREE Resource
12 Slides • 0 Questions
1
Adding Version Control (Git) &
Setting Up GitHub with SSH Key
2
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
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
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
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
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
Creating a GitHub Account
• Visit https://github.com.
• Sign up with your email address.
• Confirm your email and log in.
• Explore the dashboard.
8
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
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
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
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
Additional resources:
• Git documentation: https://git-scm.com/doc.
• GitHub docs: https://docs.github.com.
Adding Version Control (Git) &
Setting Up GitHub with SSH Key
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
8 questions
Reading and Use of English - Part 6
Presentation
•
University
8 questions
Mastering Law School and the LSAT
Presentation
•
University
10 questions
Community Service
Presentation
•
University
10 questions
Project/Oral Presentation Information
Presentation
•
KG - University
11 questions
QC FNES 146 Textbook Chapter 4 Rubrics
Presentation
•
University
10 questions
Module 2 Chapter 4 Lecture 2
Presentation
•
University
10 questions
Integrated Speaking
Presentation
•
University
Popular Resources on Wayground
25 questions
The Ultimate College Knowledge Quiz
Quiz
•
8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Math Review
Quiz
•
6th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
dog breeds
Quiz
•
3rd Grade - Professio...
40 questions
Disney Trivia
Quiz
•
KG - University
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
32 questions
NC Biology EOC Review : Heredity, Genetics, Biotechnology
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
24 questions
5th Grade Math EOG Review
Quiz
•
KG - University