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

Git and GitHub

Uploaded by

leakonoemmanuel3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Git and GitHub

Uploaded by

leakonoemmanuel3
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Introduction to Git and GitHub

Agenda
● Introduction to Command Line
● What is Git?
● What is GitHub?
● Difference between Git and GitHub
● How to install Git
● How to Sign Up GitHub
● Connect Git to GitHub Account
● Demo
Introduction to Command Line
A command-line interface (CLI) is a text-based user interface (UI) used to run
programs, manage computer files and interact with the computer.

● Create a folder - mkdir foldername (eg mkdir testing)


● Create a file - touch filename (eg touch hello.py)
● Change directory - cd nameofdirectory (eg cd desktop)
● Move files - mv filetomove foldername (eg readme.md testing)
● Rename files - mv oldname newname
● Delete files - rm filename (eg rm hello.py)
● Delete folder - rm -r foldername (rm -r testing)
● Clear terminal screen - clear
What is Git?
Git is an open-source software used for tracking changes in a
distributed version control system (DVCS). It is used/designed to track
changes in your project. Git works hand in hand with GitHub and it
was developed in 2005 by Linus Torvalds.
What is GitHub?
GitHub is a hosting provider and version control platform used to
collaborate on open-source projects and share files. In GitHub, you
can make your own changes to a project at the same time as other
developers are making theirs.
Difference between Git and GitHub
Git is a version control system that manages and keeps track of your code while
GitHub, on the other hand, is a service that lets you host, share, and manage
your code files on the internet. Git is a Distributed Version Control System
(DVCS) and GitHub is the platform where we host our code.
How to install Git and Sign Up to GitHub

To install Git use the Link


To Sign Up to GitHub use the Link
Connect Git to GitHub Account
Connecting Git to GitHub
● Set your Git username
○ git config --global user.name "your username"

● Confirm if the username is set


○ git config --global user.name

● Set your Git email address


○ git config --global user.email "[email protected]"

● Confirmed if the email is set


○ git config --global user.email
DEMO
● Creating a repo in GitHub.
● Create a folder on local computer with a readme file (using vscode).
● Push the folder to gitHub.
● Clone a document on gitHub.
● Make changes on it locally
● Create a branch.
● Create a Pull Request
● Push the changes made to the branch on GitHub.
● How to pull changes on github.

You might also like