SlideShare a Scribd company logo
Git presentation
whoami ??

   Vikas S Yaligar

    @vikasyaligar

https://github.com/vikassy
Why learn git??

To manage your Project repository


  Sharing your code via github


   Contributing to others code
Contents

➢ Git Introduction
➢ Git Basic Commands

➢ Git Branching & Merging

➢ Github Introduction

➢ Your app in Github

➢ How to Contribute?
Git Is
                 Open Source


 Version control System
                               Tool for keeping
                               a history on the
Distributed Revision control   state of your
                               source code
Source code management         projects.
I'm an egotistical bastard,
and I name all my
projects after myself. First
'Linux', now 'git'


          Linus Torvalds
Installation
On Linux


      sudo apt-get install git
                                 Version of git
Other systems                     git --version



      http://git-scm.com/
Git work flow
Git Basic Commands
git init   //initializes git

git status //prints status of current repo

git diff   //prints difference made in files

git add filename //adds file name

git commit -m “Message here :P” //saved!!

git log     //history
git init

Creates a .git file in current folder



               Why??
Because


To tell git from where the file must be tracked !!!
git add
  To add particular files/folders to commit

Examples:

git add .

git add test.c

git add somedirectory/file
How do I know which are added ?


          Using git status
git status

                  Tells us

about untracked files and files added to commit


   How do i know what are the changes?
git diff


Tells the changes made in files
git commit
git commit -m “message here”

         -m => message

git commit -am “message here:P”

-a => To add the modified files and then commit

        Message is compulsory !!
git log

To show all commits with messages,check sum and
many more

   Checksum is always unique to each commit


     Can also use gitk, a commit viewer of git
How does it work??
.gitignore


Tells git what to Ignore
Status & Review

✔ Git Introduction
✔ Git Basic Commands

➢ Git Branching & Merging

➢ Github Introduction

➢ Your app in Github

➢ How to Contribute?
Git Branching & Merging
git branch //Shows all branches of currrent repo
Git creating branches

Git branch branch_name
Commit in Branch

git checkout branch_name
     Goes to the branch
git add .
git commit -am “Message”
Other options


git checkout -b branch_name

Creates new branch and goes to that branch

git branch -d branch name

Deletes the given branch
Merging


   git merge master branch_name


Used to merge your work with master
After merging
Oh! I have to go back to last
         commit !!!


     How do I do that ???
git checkout checksum_number


 You will have same status as that commit's data !!

Concept:

         It goes to a no branch state, one can
make edits and also commit. But then you need to
create that into new branch
Status & Review

✔ Git Introduction
✔ Git Basic Commands

✔ Git Branching & Merging

➢ Github Introduction

➢ Your app in Github

➢ How to Contribute?
Github
Who uses github ???




   Many More !!!!
GitHub is the best way to collaborate
 with others. Fork, send pull requests
and manage all your public and private
            git repositories.
Creating a new repo
Git remote

A remote in Git is basically a way to tell Git where
another version of your repository is.


  Then you can ask Git to fetch data from it that you
  don’t have yet, or push your commits up to it (if you
  have write access).

Git remote add origin https://github.com/username/project.git
Fork a repo !!
Git clone


git clone new_repo_url your_name



Creates a repo by your_name
Adding upstream
git remote add upstream



https://github.com/username/rep.git


 Adds remote named upstream for your current repo
Fetch

                 git fetch upstream



Fetches all the changes made to the original repo from
whom you have forked
Merge
     Git merge upstream/master



Merges the upstream with master branch
Git pull

Directly pulls the update from the original repo to your
current working repo
There is a lot more to be learnt
                    Thank you !!

●   Credits:
●   1)Chandramouli , 3rd year , BTech.
●   2)Tushar Makkar , 2nd year, BTech.
●   3)Pramati , 2nd year , BTech .

More Related Content

PPT
Git basic
PPTX
Git commands
PPTX
Git basics
PDF
Git for beginners
PDF
Introduction to Git
PPTX
Git in 10 minutes
PDF
Introduction to Git
PPTX
Git 101
Git basic
Git commands
Git basics
Git for beginners
Introduction to Git
Git in 10 minutes
Introduction to Git
Git 101

What's hot (20)

PPTX
Git tutorial
PDF
Git and GitHub workflows
PPTX
Git - Basic Crash Course
PPTX
Git and github fundamentals
PDF
Git tutorial
PPTX
Introduction to git and github
PPTX
Introduction to git
PPTX
Git presentation
PDF
Introduction to GitHub
PPTX
HacktoberFest-Git&GitHub
PPTX
Git learning
PDF
Git basics
PPTX
Workshop on Git and GitHub
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
KEY
Introduction To Git
PDF
Version Control History and Git Basics
PPTX
Introduction to github slideshare
KEY
Introduction to Git
PDF
Git introduction workshop for scientists
PDF
A Practical Introduction to git
Git tutorial
Git and GitHub workflows
Git - Basic Crash Course
Git and github fundamentals
Git tutorial
Introduction to git and github
Introduction to git
Git presentation
Introduction to GitHub
HacktoberFest-Git&GitHub
Git learning
Git basics
Workshop on Git and GitHub
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Introduction To Git
Version Control History and Git Basics
Introduction to github slideshare
Introduction to Git
Git introduction workshop for scientists
A Practical Introduction to git
Ad

Viewers also liked (7)

KEY
Linux beginner's Workshop
PPTX
Présentation de git
PDF
Git 101 Presentation
PDF
Introduction to git
PDF
Quick Introduction to git
PDF
Git best practices workshop
PPTX
Introduction to Git/Github - A beginner's guide
Linux beginner's Workshop
Présentation de git
Git 101 Presentation
Introduction to git
Quick Introduction to git
Git best practices workshop
Introduction to Git/Github - A beginner's guide
Ad

Similar to Git presentation (20)

PPTX
git github PPT_GDSCIIITK.pptx
PPTX
GIT.pptx
PPTX
PDF
Git Init (Introduction to Git)
PPTX
Git_new.pptx
PDF
git & GitHub workshop
PPTX
github ppt git ppt on git hub to know ab
PPTX
Git Session 2K23.pptx
PPTX
Introduction to GitHub, Open Source and Tech Article
PPTX
Git 101 - An introduction to Version Control using Git
PPTX
sample.pptx
PPTX
Git and Github workshop GDSC MLRITM
PPTX
git.ppt.pptx power point presentation got Google internet
PPTX
Introduction to Git.pptx
PPTX
Do you git it
PDF
Git 入门 与 实践
PPTX
git & git hub course in information retrieval .pptx
PDF
Git 入门与实践
PDF
PPTX
Hacktoberfest intro to Git and GitHub
git github PPT_GDSCIIITK.pptx
GIT.pptx
Git Init (Introduction to Git)
Git_new.pptx
git & GitHub workshop
github ppt git ppt on git hub to know ab
Git Session 2K23.pptx
Introduction to GitHub, Open Source and Tech Article
Git 101 - An introduction to Version Control using Git
sample.pptx
Git and Github workshop GDSC MLRITM
git.ppt.pptx power point presentation got Google internet
Introduction to Git.pptx
Do you git it
Git 入门 与 实践
git & git hub course in information retrieval .pptx
Git 入门与实践
Hacktoberfest intro to Git and GitHub

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
cuic standard and advanced reporting.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf

Git presentation

  • 2. whoami ?? Vikas S Yaligar @vikasyaligar https://github.com/vikassy
  • 3. Why learn git?? To manage your Project repository Sharing your code via github Contributing to others code
  • 4. Contents ➢ Git Introduction ➢ Git Basic Commands ➢ Git Branching & Merging ➢ Github Introduction ➢ Your app in Github ➢ How to Contribute?
  • 5. Git Is Open Source Version control System Tool for keeping a history on the Distributed Revision control state of your source code Source code management projects.
  • 6. I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'git' Linus Torvalds
  • 7. Installation On Linux sudo apt-get install git Version of git Other systems git --version http://git-scm.com/
  • 9. Git Basic Commands git init //initializes git git status //prints status of current repo git diff //prints difference made in files git add filename //adds file name git commit -m “Message here :P” //saved!! git log //history
  • 10. git init Creates a .git file in current folder Why??
  • 11. Because To tell git from where the file must be tracked !!!
  • 12. git add To add particular files/folders to commit Examples: git add . git add test.c git add somedirectory/file
  • 13. How do I know which are added ? Using git status
  • 14. git status Tells us about untracked files and files added to commit How do i know what are the changes?
  • 15. git diff Tells the changes made in files
  • 16. git commit git commit -m “message here” -m => message git commit -am “message here:P” -a => To add the modified files and then commit Message is compulsory !!
  • 17. git log To show all commits with messages,check sum and many more Checksum is always unique to each commit Can also use gitk, a commit viewer of git
  • 18. How does it work??
  • 20. Status & Review ✔ Git Introduction ✔ Git Basic Commands ➢ Git Branching & Merging ➢ Github Introduction ➢ Your app in Github ➢ How to Contribute?
  • 21. Git Branching & Merging git branch //Shows all branches of currrent repo
  • 22. Git creating branches Git branch branch_name
  • 23. Commit in Branch git checkout branch_name Goes to the branch git add . git commit -am “Message”
  • 24. Other options git checkout -b branch_name Creates new branch and goes to that branch git branch -d branch name Deletes the given branch
  • 25. Merging git merge master branch_name Used to merge your work with master
  • 27. Oh! I have to go back to last commit !!! How do I do that ???
  • 28. git checkout checksum_number You will have same status as that commit's data !! Concept: It goes to a no branch state, one can make edits and also commit. But then you need to create that into new branch
  • 29. Status & Review ✔ Git Introduction ✔ Git Basic Commands ✔ Git Branching & Merging ➢ Github Introduction ➢ Your app in Github ➢ How to Contribute?
  • 31. Who uses github ??? Many More !!!!
  • 32. GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your public and private git repositories.
  • 34. Git remote A remote in Git is basically a way to tell Git where another version of your repository is. Then you can ask Git to fetch data from it that you don’t have yet, or push your commits up to it (if you have write access). Git remote add origin https://github.com/username/project.git
  • 36. Git clone git clone new_repo_url your_name Creates a repo by your_name
  • 37. Adding upstream git remote add upstream https://github.com/username/rep.git Adds remote named upstream for your current repo
  • 38. Fetch git fetch upstream Fetches all the changes made to the original repo from whom you have forked
  • 39. Merge Git merge upstream/master Merges the upstream with master branch
  • 40. Git pull Directly pulls the update from the original repo to your current working repo
  • 41. There is a lot more to be learnt Thank you !! ● Credits: ● 1)Chandramouli , 3rd year , BTech. ● 2)Tushar Makkar , 2nd year, BTech. ● 3)Pramati , 2nd year , BTech .