Getting started With GIT

Getting Started With
GIT
BY GHADI AL GHOSH
LINKEDIN.COM/IN/GHADIALGHOSH/
GITHUB.COM/GHADIALGHOSH
Introduction
Many Beginners still think Git is a trouble!!!!
This slide is to introduce you to GIT and how it’s beneficial in managing our
project.
GIT originally developed in 2005 by Linus Torvalds, the famous creator of the
Linux operating system kernel.
What you will learn
What is Git
 Basic Git Terminology & Common GIT Operations
Git vs GitHub
Create Your First Git Local Repository & push it to GitHub
http://jlord.us/git-it/challenges/remote_control.html
What is Git?
One of the primary things that Git does and also the primary reason it exists is to
keep track of the entire history of things that you are working on.
Simply, Git is like a person👤 who observes your code & remember what you &
your teammate changed, when you changed it & why you changed it.
He (Git) simply keep track of changes!
Basic Git Terminology - 1
Repository
Now imagine this person keep these changes for each project in different
folders📁.
This Folder is called a repository
Commit, Every Time you change something in your project you can tell
(commit) that person (Git) to remember it with unique ID, so he can tell you
about that change in the future if you need.
Basic Git Terminology - 2
Branch
For convenience, he keeps these records in a different cabinet, called branch. In
the beginning, there is only one slot called master branch you can tell him to add
more!
Git Operations
Init-> To initialize a local directory as Git repository
Push -> To upload changes to your repository
Pull -> To download any version of a file from a repository
Clone -> To clone a remote Git repository (GitHub) to a local machine
Git vs GitHub
What is GitHub
GitHub is a platform (an online service) that provides hosting for your projects, it
is called a remote repository because it's on a remote server.
GitHub is also called a remote repository
Git is local (tool) but GitHub is online service
https://www.benfrederickson.com/ranking-programming-languages-by-github-users/
GitHub Ranking
As of January 2020, GitHub reports having over 40 million users and more than
100 million repositories (including at least 28 million public repositories), making
it the largest host of source code in the world.
GitHub is not the only option! other choices include Git Lab and
Bitbucket.
Create your First Git local repository - 1
Create a sample folder 📁named ‘Demo’ and place some sample code files in it.
Create a GitHub Account
If you don't have one you can open an account it is available freely over the
internet 👉 https://github.com/
Create your First Git local repository - 2
Make sure you have Git installed on your machine
You can install Git for Windows which provides a BASH emulation used to run Git
from the command line. Personally, I like running Git from the command line, but
it also provides the Git GUI, a powerful alternative to Git BASH.
https://gitforwindows.org/
Create your First Git local repository - 3
Tell Git who you are
$ git config --global user.name "YOUR_USERNAME"
$ git config --global user.email "YOUREMAIL@domain.com"
$ git config --global --list # To check the info you just provided
Create your First Git local repository - 4
Let’s Git
Create a new repository on GitHub.
Follow the below link:
https://github.com/new.
Now, locate to the folder you want to place under git in your PC.
$ cd Desktop/Demo
Create your First Git local repository - 5
Initialize Git:
$ touch README.md # To create a README file
$ git init # Initiates an empty git repository
now you have successfully created a Git local repository
Add files for commit
Add the files to the Git repository for commit:
$ git add . # Adds all the files in the local repository and stages them for commit
Commit files you added to your Git repo:
$ git commit -m "First commit"# The message in the " " is given so that the other
users can read the message and see what changes you made
Add a remote origin and Push - 1
Now each time you make changes in your files and save it, it won’t be
automatically updated on GitHub. All the changes we made in the file are
updated in the local repository. Now to update the changes to the master:
$ git remote add origin remote_repository_URL# sets the new remote
The git remote command lets you create, view, and delete connections to other
repositories.
Add a remote origin and Push - 2
$ git push -u origin master # pushes changes to origin
Now the git push command pushes the changes in your local repository up to
the remote repository you specified as the origin.
And that’s it. You’ve just added the files to the repository you just created on
GitHub.
Q&A
For Any inquires feel free to send me an email at
ghadialghosh[@]outlook.com
Thank You 
1 von 21

Recomendados

Github von
GithubGithub
GithubIFEDAYO ADEYEMI
200 views14 Folien
Github von
GithubGithub
Githubabdulkareem_nm
327 views5 Folien
Brush up on using github von
Brush up on using githubBrush up on using github
Brush up on using githubSebin Benjamin
67 views14 Folien
Git and GitHub von
Git and GitHubGit and GitHub
Git and GitHubRick Umali
507 views20 Folien
Github Case Study By Amil Ali von
Github Case Study By Amil AliGithub Case Study By Amil Ali
Github Case Study By Amil AliAmilAli1
479 views14 Folien
Git and GitHub | Concept about Git and GitHub Process | Git Process overview von
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewRueful Robin
399 views21 Folien

Más contenido relacionado

Was ist angesagt?

Open source von
Open sourceOpen source
Open sourceonaelmangabo
168 views25 Folien
Beginner's guide to git and github von
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github SahilSonar4
120 views13 Folien
Github von
GithubGithub
GithubJaneAlamAdnan
212 views23 Folien
Introduction to Git von
Introduction to GitIntroduction to Git
Introduction to GitYan Vugenfirer
14.4K views35 Folien
Hacktoberfest slides von
Hacktoberfest slidesHacktoberfest slides
Hacktoberfest slidesFatimaYousif11
192 views30 Folien
Git kelvin von
Git   kelvinGit   kelvin
Git kelvinKwong Wang Ho
137 views23 Folien

Was ist angesagt?(20)

Beginner's guide to git and github von SahilSonar4
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
SahilSonar4120 views
Inside GitHub von err
Inside GitHubInside GitHub
Inside GitHub
err69.1K views
Introduction to git and Github von Wycliff1
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1125 views
Smile Gupta - Hacktoberfest Celebration 2020 von Smile Gupta
Smile Gupta - Hacktoberfest Celebration 2020Smile Gupta - Hacktoberfest Celebration 2020
Smile Gupta - Hacktoberfest Celebration 2020
Smile Gupta55 views
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg von Nisha Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal GargGitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
GitHub Classroom - An Open Source Learning Platform by Dr. Anchal Garg
Nisha Garg104 views
Git, GitHub and Open Source von Lorna Mitchell
Git, GitHub and Open SourceGit, GitHub and Open Source
Git, GitHub and Open Source
Lorna Mitchell2.2K views
Contributing to open source using Git von Yan Vugenfirer
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
Yan Vugenfirer385 views

Similar a Getting started With GIT

Beginner Workshop for Student Developers - Tratech-presentation.pdf von
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdfGDSCKNUST
23 views24 Folien
Introduction to GitHub, Open Source and Tech Article von
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
225 views58 Folien
16 Git von
16 Git16 Git
16 GitHadley Wickham
664 views57 Folien
Introduction to git and github von
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
4.3K views23 Folien
introductiontogitandgithub-120702044048-phpapp01.pdf von
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
7 views23 Folien
Brief tutorial on Git von
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
6.3K views56 Folien

Similar a Getting started With GIT(20)

Beginner Workshop for Student Developers - Tratech-presentation.pdf von GDSCKNUST
Beginner Workshop for Student Developers - Tratech-presentation.pdfBeginner Workshop for Student Developers - Tratech-presentation.pdf
Beginner Workshop for Student Developers - Tratech-presentation.pdf
GDSCKNUST23 views
Introduction to GitHub, Open Source and Tech Article von PRIYATHAMDARISI
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
PRIYATHAMDARISI225 views
Introduction to git and github von Aderemi Dadepo
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo4.3K views
introductiontogitandgithub-120702044048-phpapp01.pdf von BruceLee275640
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee2756407 views
Brief tutorial on Git von 聖文 鄭
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
聖文 鄭6.3K views
A Tutorial for GitHub.pdf von Amarnadh36
A Tutorial for GitHub.pdfA Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Amarnadh3649 views
Introduction to Git & GitHub von Wasit Shafi
Introduction to Git & GitHubIntroduction to Git & GitHub
Introduction to Git & GitHub
Wasit Shafi19 views
Git, github and the hacktober fest von UtkarshRaj83
Git, github and the hacktober festGit, github and the hacktober fest
Git, github and the hacktober fest
UtkarshRaj8383 views

Último

What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue von
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueShapeBlue
131 views23 Folien
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... von
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...ShapeBlue
74 views18 Folien
The Power of Heat Decarbonisation Plans in the Built Environment von
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built EnvironmentIES VE
57 views20 Folien
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T von
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TShapeBlue
56 views34 Folien
NTGapps NTG LowCode Platform von
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform Mustafa Kuğu
141 views30 Folien
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... von
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...The Digital Insurer
31 views52 Folien

Último(20)

What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue von ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue131 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... von ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue74 views
The Power of Heat Decarbonisation Plans in the Built Environment von IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE57 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T von ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue56 views
NTGapps NTG LowCode Platform von Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu141 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... von The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
Igniting Next Level Productivity with AI-Infused Data Integration Workflows von Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software344 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... von ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue63 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT von ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue91 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... von Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... von ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue57 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ von ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue41 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... von ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue46 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems von ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue111 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... von TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc77 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online von ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue102 views
Future of AR - Facebook Presentation von Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty46 views

Getting started With GIT

  • 1. Getting Started With GIT BY GHADI AL GHOSH LINKEDIN.COM/IN/GHADIALGHOSH/ GITHUB.COM/GHADIALGHOSH
  • 2. Introduction Many Beginners still think Git is a trouble!!!! This slide is to introduce you to GIT and how it’s beneficial in managing our project. GIT originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel.
  • 3. What you will learn What is Git  Basic Git Terminology & Common GIT Operations Git vs GitHub Create Your First Git Local Repository & push it to GitHub
  • 5. What is Git? One of the primary things that Git does and also the primary reason it exists is to keep track of the entire history of things that you are working on. Simply, Git is like a person👤 who observes your code & remember what you & your teammate changed, when you changed it & why you changed it. He (Git) simply keep track of changes!
  • 6. Basic Git Terminology - 1 Repository Now imagine this person keep these changes for each project in different folders📁. This Folder is called a repository Commit, Every Time you change something in your project you can tell (commit) that person (Git) to remember it with unique ID, so he can tell you about that change in the future if you need.
  • 7. Basic Git Terminology - 2 Branch For convenience, he keeps these records in a different cabinet, called branch. In the beginning, there is only one slot called master branch you can tell him to add more!
  • 8. Git Operations Init-> To initialize a local directory as Git repository Push -> To upload changes to your repository Pull -> To download any version of a file from a repository Clone -> To clone a remote Git repository (GitHub) to a local machine
  • 10. What is GitHub GitHub is a platform (an online service) that provides hosting for your projects, it is called a remote repository because it's on a remote server. GitHub is also called a remote repository Git is local (tool) but GitHub is online service
  • 12. GitHub Ranking As of January 2020, GitHub reports having over 40 million users and more than 100 million repositories (including at least 28 million public repositories), making it the largest host of source code in the world. GitHub is not the only option! other choices include Git Lab and Bitbucket.
  • 13. Create your First Git local repository - 1 Create a sample folder 📁named ‘Demo’ and place some sample code files in it. Create a GitHub Account If you don't have one you can open an account it is available freely over the internet 👉 https://github.com/
  • 14. Create your First Git local repository - 2 Make sure you have Git installed on your machine You can install Git for Windows which provides a BASH emulation used to run Git from the command line. Personally, I like running Git from the command line, but it also provides the Git GUI, a powerful alternative to Git BASH. https://gitforwindows.org/
  • 15. Create your First Git local repository - 3 Tell Git who you are $ git config --global user.name "YOUR_USERNAME" $ git config --global user.email "YOUREMAIL@domain.com" $ git config --global --list # To check the info you just provided
  • 16. Create your First Git local repository - 4 Let’s Git Create a new repository on GitHub. Follow the below link: https://github.com/new. Now, locate to the folder you want to place under git in your PC. $ cd Desktop/Demo
  • 17. Create your First Git local repository - 5 Initialize Git: $ touch README.md # To create a README file $ git init # Initiates an empty git repository now you have successfully created a Git local repository
  • 18. Add files for commit Add the files to the Git repository for commit: $ git add . # Adds all the files in the local repository and stages them for commit Commit files you added to your Git repo: $ git commit -m "First commit"# The message in the " " is given so that the other users can read the message and see what changes you made
  • 19. Add a remote origin and Push - 1 Now each time you make changes in your files and save it, it won’t be automatically updated on GitHub. All the changes we made in the file are updated in the local repository. Now to update the changes to the master: $ git remote add origin remote_repository_URL# sets the new remote The git remote command lets you create, view, and delete connections to other repositories.
  • 20. Add a remote origin and Push - 2 $ git push -u origin master # pushes changes to origin Now the git push command pushes the changes in your local repository up to the remote repository you specified as the origin. And that’s it. You’ve just added the files to the repository you just created on GitHub.
  • 21. Q&A For Any inquires feel free to send me an email at ghadialghosh[@]outlook.com Thank You 