Introduction to git & GitHub

Introduction to
Git & GitHub
Komal Sharma
DSC member
NO.
Are Git & GitHub
Same?
Git is one of the most widely used distributed VCS
or Version Control System. It is FREE and Open
Source project and was started in the year 2005 by
Linus Torvalds.
What is Git?
WHAT DOES THAT EVEN
MEAN?
Version control is a system that keep records of all
the changes done to a file or files over time and
helps us to switch back to any version.
What is VCS?
Why use GIT?
-Store revisions in a project history in just one directory
-Rewind to any revision in the project
-Work on new features without interference of main codebase
-Easily collaborate with other programmers
What is GitHub?
-Online service that hosts our projects
-Share our code with other developers
-Developers can download the projects and work on them
-They can re-upload and merge their edits to the main codebase
Terminology we use
Directory -> Folder
Terminal -> Interface for Text commands
CLI -> Command Line Interface
mkdir -> Creates a new folder
cd -> Change directory
Let’s get started...
Download GIT :
https://git-scm.com/downloads
Git Basic concepts
The Folder where your project is stored is a
repository and if it has a .git folder then its Git
Repository.
Git Repository
The commit command is used to save changes to
Local repository
Commit
Stages
Modified
Changed files
Not commited
Staging
Add any changed
files to staging
that you want to
commit
Commit
Any files in the
staging area are
added to the
commit when we
make one
Some concepts
Checkout Commit Revert Commit Reset Commit
1START 2 3 4
Basic Version Control
Terminology
git init
Branch-
A parallel copy of the main code having additional modifications.
Push-
Upload committed changes.
Pull-
Download changes from Remote.
Fork-
The repository which stores the copy of the main codebase.
Basic Git Commands
git init- to initialize git and make a .git repository
git rm[file]- deletes the file from your working directory
git status- gives you the status on your local branch
git add- adds the file to staging area
git commit- to commit the staged files
git clone- downloads repository from GitHub to your system
git push- sends local files to remote branch
git branch- lists available local branches and can create a new
branch
git merge- to merge branches together
Introduction to git & GitHub
Introduction to git & GitHub
Introduction to git & GitHub
Introduction to git & GitHub
1 von 20

Recomendados

Git 101 for Beginners von
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners Anurag Upadhaya
1.5K views55 Folien
Starting with Git & GitHub von
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHubNicolás Tourné
10.7K views35 Folien
Git basics von
Git basicsGit basics
Git basicsGHARSALLAH Mohamed
1.2K views38 Folien
Introduction to Git and Github von
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and GithubSomkiat Puisungnoen
2.4K views44 Folien
Intro to git and git hub von
Intro to git and git hubIntro to git and git hub
Intro to git and git hubVenkat Malladi
1.3K views61 Folien
Git - Basic Crash Course von
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash CourseNilay Binjola
1.6K views39 Folien

Más contenido relacionado

Was ist angesagt?

Git and github von
Git and githubGit and github
Git and githubSayantika Banik
168 views27 Folien
Git and github 101 von
Git and github 101Git and github 101
Git and github 101Senthilkumar Gopal
1.4K views30 Folien
Git One Day Training Notes von
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notesglen_a_smith
3.5K views67 Folien
Git training v10 von
Git training v10Git training v10
Git training v10Skander Hamza
924 views64 Folien
Git 101 von
Git 101Git 101
Git 101Sachet Mittal
551 views14 Folien
Github - Git Training Slides: Foundations von
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsLee Hanxue
3.1K views537 Folien

Was ist angesagt?(20)

Git One Day Training Notes von glen_a_smith
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
glen_a_smith3.5K views
Github - Git Training Slides: Foundations von Lee Hanxue
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
Lee Hanxue3.1K views
Introduction to Git and Github von Houari ZEGAI
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
Houari ZEGAI412 views
Introduction to Git and GitHub von Vikram SV
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
Vikram SV206 views
Introduction to Git and GitHub Part 1 von Omar Fathy
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy305 views
Git Introduction Tutorial von Thomas Rausch
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
Thomas Rausch3.9K views
Learning git von Sid Anand
Learning gitLearning git
Learning git
Sid Anand2.4K views
Git real slides von Lucas Couto
Git real slidesGit real slides
Git real slides
Lucas Couto3.5K views

Similar a Introduction to git & GitHub

Git introduction von
Git introductionGit introduction
Git introductionsatyendrajaladi
938 views33 Folien
Git training (basic) von
Git training (basic)Git training (basic)
Git training (basic)Arashdeepkaur16
62 views20 Folien
Git&GitHub.pptx von
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptxKondiVenkatesh1
21 views16 Folien
Introduction to git hub von
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
386 views17 Folien
GIT_Overview. von
GIT_Overview.GIT_Overview.
GIT_Overview.Mithilesh Singh
76 views81 Folien
GIT.pptx von
GIT.pptxGIT.pptx
GIT.pptxSoumen Debgupta
2 views22 Folien

Similar a Introduction to git & GitHub(20)

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
PRIYATHAMDARISI224 views
Git_and_GitHub Integration_with_Guidewire von Gandhi Ramu
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
Gandhi Ramu628 views
GDSC23 - Github Workshop Presentation.pptx von ChitreshGyanani1
GDSC23 - Github Workshop Presentation.pptxGDSC23 - Github Workshop Presentation.pptx
GDSC23 - Github Workshop Presentation.pptx
ChitreshGyanani140 views
Introduction to Git and Github von Max Claus Nunes
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes1.8K views
Introduction to Git & GitHub von Wasit Shafi
Introduction to Git & GitHubIntroduction to Git & GitHub
Introduction to Git & GitHub
Wasit Shafi19 views
Git 101 von jayrparro
Git 101Git 101
Git 101
jayrparro2.2K views

Último

REPRESENTATION - GAUNTLET.pptx von
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptxiammrhaywood
100 views26 Folien
How to empty an One2many field in Odoo von
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in OdooCeline George
65 views8 Folien
Google solution challenge..pptx von
Google solution challenge..pptxGoogle solution challenge..pptx
Google solution challenge..pptxChitreshGyanani1
131 views18 Folien
Psychology KS4 von
Psychology KS4Psychology KS4
Psychology KS4WestHatch
84 views4 Folien
unidad 3.pdf von
unidad 3.pdfunidad 3.pdf
unidad 3.pdfMarcosRodriguezUcedo
62 views38 Folien
MIXING OF PHARMACEUTICALS.pptx von
MIXING OF PHARMACEUTICALS.pptxMIXING OF PHARMACEUTICALS.pptx
MIXING OF PHARMACEUTICALS.pptxAnupkumar Sharma
77 views35 Folien

Último(20)

REPRESENTATION - GAUNTLET.pptx von iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood100 views
How to empty an One2many field in Odoo von Celine George
How to empty an One2many field in OdooHow to empty an One2many field in Odoo
How to empty an One2many field in Odoo
Celine George65 views
Psychology KS4 von WestHatch
Psychology KS4Psychology KS4
Psychology KS4
WestHatch84 views
Psychology KS5 von WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch93 views
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx von Ms. Pooja Bhandare
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
7 NOVEL DRUG DELIVERY SYSTEM.pptx von Sachin Nitave
7 NOVEL DRUG DELIVERY SYSTEM.pptx7 NOVEL DRUG DELIVERY SYSTEM.pptx
7 NOVEL DRUG DELIVERY SYSTEM.pptx
Sachin Nitave61 views
Ch. 8 Political Party and Party System.pptx von Rommel Regala
Ch. 8 Political Party and Party System.pptxCh. 8 Political Party and Party System.pptx
Ch. 8 Political Party and Party System.pptx
Rommel Regala49 views
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB... von Nguyen Thanh Tu Collection
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively von PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 585 views
11.30.23 Poverty and Inequality in America.pptx von mary850239
11.30.23 Poverty and Inequality in America.pptx11.30.23 Poverty and Inequality in America.pptx
11.30.23 Poverty and Inequality in America.pptx
mary850239160 views
Use of Probiotics in Aquaculture.pptx von AKSHAY MANDAL
Use of Probiotics in Aquaculture.pptxUse of Probiotics in Aquaculture.pptx
Use of Probiotics in Aquaculture.pptx
AKSHAY MANDAL100 views
Monthly Information Session for MV Asterix (November) von Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC55 views
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... von Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1486 views

Introduction to git & GitHub

  • 1. Introduction to Git & GitHub Komal Sharma DSC member
  • 2. NO. Are Git & GitHub Same?
  • 3. Git is one of the most widely used distributed VCS or Version Control System. It is FREE and Open Source project and was started in the year 2005 by Linus Torvalds. What is Git?
  • 4. WHAT DOES THAT EVEN MEAN?
  • 5. Version control is a system that keep records of all the changes done to a file or files over time and helps us to switch back to any version. What is VCS?
  • 6. Why use GIT? -Store revisions in a project history in just one directory -Rewind to any revision in the project -Work on new features without interference of main codebase -Easily collaborate with other programmers
  • 7. What is GitHub? -Online service that hosts our projects -Share our code with other developers -Developers can download the projects and work on them -They can re-upload and merge their edits to the main codebase
  • 8. Terminology we use Directory -> Folder Terminal -> Interface for Text commands CLI -> Command Line Interface mkdir -> Creates a new folder cd -> Change directory
  • 9. Let’s get started... Download GIT : https://git-scm.com/downloads
  • 11. The Folder where your project is stored is a repository and if it has a .git folder then its Git Repository. Git Repository
  • 12. The commit command is used to save changes to Local repository Commit
  • 13. Stages Modified Changed files Not commited Staging Add any changed files to staging that you want to commit Commit Any files in the staging area are added to the commit when we make one
  • 14. Some concepts Checkout Commit Revert Commit Reset Commit 1START 2 3 4
  • 15. Basic Version Control Terminology git init Branch- A parallel copy of the main code having additional modifications. Push- Upload committed changes. Pull- Download changes from Remote. Fork- The repository which stores the copy of the main codebase.
  • 16. Basic Git Commands git init- to initialize git and make a .git repository git rm[file]- deletes the file from your working directory git status- gives you the status on your local branch git add- adds the file to staging area git commit- to commit the staged files git clone- downloads repository from GitHub to your system git push- sends local files to remote branch git branch- lists available local branches and can create a new branch git merge- to merge branches together

Hinweis der Redaktion

  1. The first question that comes to our mind...
  2. If you google, the result will be something like this...
  3. If you are anything like me, that probably went over you head
  4. Let’s break it down now… (Video game- safe points example)
  5. Ever happened that you saved multiple “finals”
  6. Installing Git