SlideShare a Scribd company logo
Git and GitHub Hands
on Session
Kabale University
Arinaitwe Rebecca
BIT, Kabale University
Arinaitwe Rebecca
@Becky7Renasha
rebeccarinaitwe@gmail.com
Agenda
Prerequisites
Initial Setup
Creating Your First Repository
Staging and Committing Changes
 Tips for Beginners
Git and GitHub Workflow
Q & A session
Prerequisites
Git Installed: Download Git and install it.
GitHub Account: Make sure you've created an
account (as covered earlier).
Code Editor: VS Code or any preferred code
editor.
Initial Setup
 Go to the official Git website: git-scm.com
 Click on Download and choose the appropriate version for
your operating system (Windows, macOS, or Linux).
 Run the downloaded .exe file.
 Keep the default settings unless you need specific
integrations.
 Check if git is installed: git --version
Configure Git
Set your username
• git config --global user.name "Your Name"
• eg. git config --global user.name "doreentush66"
Configure Git
Set your email
• git config --global user.email "email"
• eg. git config --global user.email
"doreentushabomwe1@gmail.com"
Configure Git
To varify Your configurations:
git config --list
Your First Repository: creating a folder
Open Terminal and create a new directory or
do it manually using GUI
mkdir my-first-repo
navigate too the newly created directory
cd my-first-repo
Your First Repository
Initialize Git:
• git init
 Create a File
• Create a simple html file
• echo "#my new file" > index.html
Staging and Committing Changes
Check Status:
• git status
 Stage the File:
• git add index.html
 To add all the files in our directory
• git add .
Staging and Committing Changes
Commit Changes:
• git commit -m "Initial commit with
index.html"
Making changes to the directory
 Making changes to the directory e.g. creating
a new file or modifying an existing file
• Using git status, we can notice modified files
and new files that have been added to the
directory
Making changes to the directory
 creating a new CSS file in our directory
 echo "#the style file" > style.css
 and modying index.html
Staging the changes made
 use git add . to add the modified file and the
new file to the staging area
Commiting the changes made
 git commit -m "added a css file and improved
the home page"
Setting Up and Generating an SSH Key for GitHub
 ssh-keygen -t ed25519 -C "doreentushabomwe1@gmail.com"
 After generating the key, got to C:Usersadmin.ssh
 on the view tab tick the checkbox to view hidden items
 Right-click on id_ed25519.pub
 Select Open with > Notepad (or any text editor).
 Copy the entire content of the file
Add the Key to GitHub:
 Go to GitHub > Settings > SSH and GPG keys.
 Click New SSH key.
 Paste the copied key.
 Give it a title (e.g., "My key").
 Click Add SSH key.
 Test the Connection: ssh -T git@github.com
Any Questions??
Kabale University
Arinaitwe Rebecca
BIT, Kabale University
Arinaitwe Rebecca
@Becky7Renasha
rebeccarinaitwe@gmail.com

More Related Content

PPTX
Github Session organized by GDG on campus SCOE.pptx
PPTX
Git ritesh venture_pact
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
Introduction to Git and GitHub Part 1
PPTX
GIT_lab how to create repository for the folders
PPTX
Git and GitHub PowerPoint Presentation**
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
Github Session organized by GDG on campus SCOE.pptx
Git ritesh venture_pact
Git and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub Workshop of GDG on Campus UNSTPB
Introduction to Git and GitHub Part 1
GIT_lab how to create repository for the folders
Git and GitHub PowerPoint Presentation**
Git and GitHub Workshop of GDG on Campus UNSTPB

Similar to Introduction to Git and GitHub By GDG on Campus Kaba University (20)

PPTX
Git and GitHub workshop of GDG on Campus UNSTPB
PDF
DevOps Expt 2.pdf
PPTX
Version control
PPTX
Git and Github.pptx
PDF
Github and Git What the fuck is this shit .pdf
PPTX
Version controll.pptx
KEY
Let's Git this Party Started: An Introduction to Git and GitHub
PPT
GIT By Sivakrishna
PPTX
GIT & COMPOSER __BASIC_git git git git.pptx
PPTX
GitHub_For_Beginners_Presentationss.pptx
PPT
Git workflow libre semikov
PDF
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
PPTX
Git session Dropsolid.com
PDF
PPT
Introduction to Git
PPTX
Introduction git
PDF
Git Basics (Professionals)
PPT
Git installation and configuration
PPTX
Techoalien git
PPTX
Techoalien git
Git and GitHub workshop of GDG on Campus UNSTPB
DevOps Expt 2.pdf
Version control
Git and Github.pptx
Github and Git What the fuck is this shit .pdf
Version controll.pptx
Let's Git this Party Started: An Introduction to Git and GitHub
GIT By Sivakrishna
GIT & COMPOSER __BASIC_git git git git.pptx
GitHub_For_Beginners_Presentationss.pptx
Git workflow libre semikov
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Git session Dropsolid.com
Introduction to Git
Introduction git
Git Basics (Professionals)
Git installation and configuration
Techoalien git
Techoalien git
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Modernizing your data center with Dell and AMD
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
NewMind AI Monthly Chronicles - July 2025
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Modernizing your data center with Dell and AMD
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Advanced methodologies resolving dimensionality complications for autism neur...
madgavkar20181017ppt McKinsey Presentation.pdf
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Ad

Introduction to Git and GitHub By GDG on Campus Kaba University

  • 1. Git and GitHub Hands on Session Kabale University Arinaitwe Rebecca BIT, Kabale University Arinaitwe Rebecca @Becky7Renasha [email protected]
  • 2. Agenda Prerequisites Initial Setup Creating Your First Repository Staging and Committing Changes  Tips for Beginners Git and GitHub Workflow Q & A session
  • 3. Prerequisites Git Installed: Download Git and install it. GitHub Account: Make sure you've created an account (as covered earlier). Code Editor: VS Code or any preferred code editor.
  • 4. Initial Setup  Go to the official Git website: git-scm.com  Click on Download and choose the appropriate version for your operating system (Windows, macOS, or Linux).  Run the downloaded .exe file.  Keep the default settings unless you need specific integrations.  Check if git is installed: git --version
  • 5. Configure Git Set your username • git config --global user.name "Your Name" • eg. git config --global user.name "doreentush66"
  • 6. Configure Git Set your email • git config --global user.email "email" • eg. git config --global user.email "[email protected]"
  • 7. Configure Git To varify Your configurations: git config --list
  • 8. Your First Repository: creating a folder Open Terminal and create a new directory or do it manually using GUI mkdir my-first-repo navigate too the newly created directory cd my-first-repo
  • 9. Your First Repository Initialize Git: • git init  Create a File • Create a simple html file • echo "#my new file" > index.html
  • 10. Staging and Committing Changes Check Status: • git status  Stage the File: • git add index.html  To add all the files in our directory • git add .
  • 11. Staging and Committing Changes Commit Changes: • git commit -m "Initial commit with index.html"
  • 12. Making changes to the directory  Making changes to the directory e.g. creating a new file or modifying an existing file • Using git status, we can notice modified files and new files that have been added to the directory
  • 13. Making changes to the directory  creating a new CSS file in our directory  echo "#the style file" > style.css  and modying index.html
  • 14. Staging the changes made  use git add . to add the modified file and the new file to the staging area
  • 15. Commiting the changes made  git commit -m "added a css file and improved the home page"
  • 16. Setting Up and Generating an SSH Key for GitHub  ssh-keygen -t ed25519 -C "[email protected]"  After generating the key, got to C:Usersadmin.ssh  on the view tab tick the checkbox to view hidden items  Right-click on id_ed25519.pub  Select Open with > Notepad (or any text editor).  Copy the entire content of the file
  • 17. Add the Key to GitHub:  Go to GitHub > Settings > SSH and GPG keys.  Click New SSH key.  Paste the copied key.  Give it a title (e.g., "My key").  Click Add SSH key.  Test the Connection: ssh -T [email protected]
  • 18. Any Questions?? Kabale University Arinaitwe Rebecca BIT, Kabale University Arinaitwe Rebecca @Becky7Renasha [email protected]