SlideShare a Scribd company logo
1 of 19
Introduction to Git
In the next few slides you will learn more
about git, git workflow, VCS, GitHub and its
basics.
Things to keep in mind
Before we start, check this out :-
1. “There is always a person in a room who knows more
than you. I rather be that guy” - Person
2. We will make a new friend, it is called Google.
3. Don’t rush, take it slow. Understand each step.
CRYSTAL.
4. Ask silly questions. People who ask questions. Self
understanding is important.
5. If I am going fast, Be responsible and tell me yourself.
Don’t wait for others.
VCS
(Version Control
System)
What does VCS do for you ?
● Keeps track of your work and output of
your work that is your code.
● Keeps tracks of exactly what is changed.
● Keeps tracks of who makes those changes.
● Keeps tracks of why the changes were
made.
● Every real project you will ever make will
be build using these platforms only.
Examples of VCS
SVN - Subversion
Examples of VCS
Mercurial - tuned for performance
Examples of VCS
CVN - Grandfather of all
Examples of VCS
git - Modern, popular and the
one you are going to learn
git --distributed-even-if-your-workflow-isnt
It is a type of VCS where you can modify code
without actually overwriting anything, collaborate
and work easily. With seperate workflows using
branches.
GitHub
It is code hosting platform for version control
and collaboration. It lets you and others work
together on projects from anywhere and
harness the true power of git.
You sold. Anyone
wants to leave.
Now is the time.
1. Start GitHub tutorial
2. Login to your GitHub account
3. FORK this repo http://tiny.cc/vanilla
4. git clone <upstreamRepoURL> vanilla
5. End Github Tutorial
http://tiny.cc/noshit
http://tiny.cc/jainpost
http://tiny.cc/gotvideo
1. Start Git Tutorial
2. $ git config --global user.name "John Doe"
3. $ git config --global user.email johndoe@example.com
4. git init - Initialize a directory for git - Try in your cloned directory
5. git add - Snapshot 1.txt >> Snapshot 2.txt
6. git status - After Snapshot 2.txt is saved
7. git commit - Commit Snapshot 2.txt
8. git status - again
9. git log - check your log
10. Change something in Snapshot 2.txt
11. git diff
12. Repeat the same from step 5
13. 3 times
14. git remote -v
15. git add remote upstream www.github.com/vipulgupta2048/vanilla
16. Git push origin master
1. Links for more information.
2. How to progress.
3. How to find new projects.
4. How to do new things.
5. How github is used by teams and
meetup groups to collaborate and
work together.
https://git-scm.com/book/en/v1/Getting-Started-About-
Version-Control
https://www.joshmatthews.net/bugsahoy/
https://github.com/coding-blocks
https://github.com/ILUGD/
https://github.com/asetalias/
http://lym.readthedocs.io/en/latest/
http://sethrobertson.github.io/GitFixUm/fixup.html
Stack Overflow
Documentation - Read.the.docs. _RTFD_
https://try.github.io
http://www-cs-
students.stanford.edu/~blynn/gitmagic/index.html
https://www.atlassian.com/git/tutorials/using-branches
https://github.com/Roshanjossey/first-contributions
http://ohshitgit.com/
https://github.com/Roshanjossey/first-
contributions/blob/master/additional-material/Useful-links-
for-further-learning.md
Alternatives to GitHub if you
are crazy enough to try
1. Gitlab(in some ways better than
even GitHub)
2. Bitbucket
3. Microsoft Visual
Studio Team Services
4. CloudForge
5. Openforge - Indian
“Learn 3 things in life. Git, a
programming language and how
to speak in public.”
- Anuvrat Parashar
Any questions??
Return 0;
Feedback
Thanks !!
Vipul Gupta
B.Tech, 2nd year,
Amity University
Core ALiAS member, blogger,
Linux enthusiast and sometimes sarcastic.
www.mixstersite.wordpress.com
@vipulgupta2048
[GitHub, Facebook, LinkedIn, Gmail]

More Related Content

What's hot

Pragmatic Guide to Git
Pragmatic Guide to GitPragmatic Guide to Git
Pragmatic Guide to Git
ConFoo
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexy
Ailsa126
 
镐京入场培训.Key
镐京入场培训.Key镐京入场培训.Key
镐京入场培训.Key
Bean Tsang
 

What's hot (20)

Git basics
Git basicsGit basics
Git basics
 
Learning GitHub Part 3
Learning GitHub Part 3Learning GitHub Part 3
Learning GitHub Part 3
 
Workshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughsWorkshop on Source control, git merge walkthroughs
Workshop on Source control, git merge walkthroughs
 
Learning GitHub Part 2
Learning GitHub Part 2Learning GitHub Part 2
Learning GitHub Part 2
 
Let's git it on
Let's git it onLet's git it on
Let's git it on
 
Pragmatic Guide to Git
Pragmatic Guide to GitPragmatic Guide to Git
Pragmatic Guide to Git
 
Learning GitHub Part 1
Learning GitHub Part 1Learning GitHub Part 1
Learning GitHub Part 1
 
Web Programming - Git basics
Web Programming - Git basicsWeb Programming - Git basics
Web Programming - Git basics
 
GIT - DUG Antwerp
GIT - DUG AntwerpGIT - DUG Antwerp
GIT - DUG Antwerp
 
Git isthenewsexy
Git isthenewsexyGit isthenewsexy
Git isthenewsexy
 
Learning GitHub Part 4
Learning GitHub Part 4Learning GitHub Part 4
Learning GitHub Part 4
 
镐京入场培训.Key
镐京入场培训.Key镐京入场培训.Key
镐京入场培训.Key
 
Introducing Git to your FTP workflow
Introducing Git to your FTP workflow Introducing Git to your FTP workflow
Introducing Git to your FTP workflow
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
 
Git: a representation
Git: a representationGit: a representation
Git: a representation
 
Git hooks for front end developers
Git hooks for front end developersGit hooks for front end developers
Git hooks for front end developers
 
Git hooks
Git hooksGit hooks
Git hooks
 
Presentacion git
Presentacion gitPresentacion git
Presentacion git
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for Artists
 
Version control system & how to use git
Version control system & how to use git Version control system & how to use git
Version control system & how to use git
 

Similar to Hello git - a soft introduction to git (Talk Slides)

Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...
fureigh
 

Similar to Hello git - a soft introduction to git (Talk Slides) (20)

Beginner's guide to git and github
Beginner's guide to git and github Beginner's guide to git and github
Beginner's guide to git and github
 
Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...Git in gear: How to track changes, travel back in time, and code nicely with ...
Git in gear: How to track changes, travel back in time, and code nicely with ...
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
Git training
Git trainingGit training
Git training
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 
16 Git
16 Git16 Git
16 Git
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx
 
git and github
git and githubgit and github
git and github
 
How to configure a Git repository and push to a remote repository…
How to configure a Git repository and push to a remote repository…How to configure a Git repository and push to a remote repository…
How to configure a Git repository and push to a remote repository…
 
Git It
Git ItGit It
Git It
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Demo
DemoDemo
Demo
 
Git 101
Git 101Git 101
Git 101
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How to
 
How to use git without rage
How to use git without rageHow to use git without rage
How to use git without rage
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
 
Introduction to Git for Non-Developers
Introduction to Git for Non-DevelopersIntroduction to Git for Non-Developers
Introduction to Git for Non-Developers
 

More from Amity University Noida (6)

Impossible Pictures
Impossible PicturesImpossible Pictures
Impossible Pictures
 
Greenhouse Effect and Global Carbon Footprint
Greenhouse Effect and Global Carbon FootprintGreenhouse Effect and Global Carbon Footprint
Greenhouse Effect and Global Carbon Footprint
 
The definitive presentation on Black Holes (School Level)
The definitive presentation on Black Holes (School Level)The definitive presentation on Black Holes (School Level)
The definitive presentation on Black Holes (School Level)
 
Sustainable Development 2018
Sustainable Development 2018Sustainable Development 2018
Sustainable Development 2018
 
Faith, Belief and Environment
Faith, Belief and EnvironmentFaith, Belief and Environment
Faith, Belief and Environment
 
Unix and Linux - The simple introduction
Unix and Linux - The simple introductionUnix and Linux - The simple introduction
Unix and Linux - The simple introduction
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Hello git - a soft introduction to git (Talk Slides)

  • 1. Introduction to Git In the next few slides you will learn more about git, git workflow, VCS, GitHub and its basics.
  • 2. Things to keep in mind Before we start, check this out :- 1. “There is always a person in a room who knows more than you. I rather be that guy” - Person 2. We will make a new friend, it is called Google. 3. Don’t rush, take it slow. Understand each step. CRYSTAL. 4. Ask silly questions. People who ask questions. Self understanding is important. 5. If I am going fast, Be responsible and tell me yourself. Don’t wait for others.
  • 4. What does VCS do for you ? ● Keeps track of your work and output of your work that is your code. ● Keeps tracks of exactly what is changed. ● Keeps tracks of who makes those changes. ● Keeps tracks of why the changes were made. ● Every real project you will ever make will be build using these platforms only.
  • 5. Examples of VCS SVN - Subversion
  • 6. Examples of VCS Mercurial - tuned for performance
  • 7. Examples of VCS CVN - Grandfather of all
  • 8. Examples of VCS git - Modern, popular and the one you are going to learn
  • 9. git --distributed-even-if-your-workflow-isnt It is a type of VCS where you can modify code without actually overwriting anything, collaborate and work easily. With seperate workflows using branches. GitHub It is code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere and harness the true power of git.
  • 10. You sold. Anyone wants to leave. Now is the time.
  • 11. 1. Start GitHub tutorial 2. Login to your GitHub account 3. FORK this repo http://tiny.cc/vanilla 4. git clone <upstreamRepoURL> vanilla 5. End Github Tutorial http://tiny.cc/noshit http://tiny.cc/jainpost http://tiny.cc/gotvideo
  • 12. 1. Start Git Tutorial 2. $ git config --global user.name "John Doe" 3. $ git config --global user.email johndoe@example.com 4. git init - Initialize a directory for git - Try in your cloned directory 5. git add - Snapshot 1.txt >> Snapshot 2.txt 6. git status - After Snapshot 2.txt is saved 7. git commit - Commit Snapshot 2.txt 8. git status - again 9. git log - check your log 10. Change something in Snapshot 2.txt 11. git diff 12. Repeat the same from step 5 13. 3 times 14. git remote -v 15. git add remote upstream www.github.com/vipulgupta2048/vanilla 16. Git push origin master
  • 13.
  • 14. 1. Links for more information. 2. How to progress. 3. How to find new projects. 4. How to do new things. 5. How github is used by teams and meetup groups to collaborate and work together.
  • 15. https://git-scm.com/book/en/v1/Getting-Started-About- Version-Control https://www.joshmatthews.net/bugsahoy/ https://github.com/coding-blocks https://github.com/ILUGD/ https://github.com/asetalias/ http://lym.readthedocs.io/en/latest/ http://sethrobertson.github.io/GitFixUm/fixup.html Stack Overflow Documentation - Read.the.docs. _RTFD_ https://try.github.io http://www-cs- students.stanford.edu/~blynn/gitmagic/index.html https://www.atlassian.com/git/tutorials/using-branches https://github.com/Roshanjossey/first-contributions http://ohshitgit.com/ https://github.com/Roshanjossey/first- contributions/blob/master/additional-material/Useful-links- for-further-learning.md
  • 16. Alternatives to GitHub if you are crazy enough to try 1. Gitlab(in some ways better than even GitHub) 2. Bitbucket 3. Microsoft Visual Studio Team Services 4. CloudForge 5. Openforge - Indian
  • 17. “Learn 3 things in life. Git, a programming language and how to speak in public.” - Anuvrat Parashar
  • 19. Thanks !! Vipul Gupta B.Tech, 2nd year, Amity University Core ALiAS member, blogger, Linux enthusiast and sometimes sarcastic. www.mixstersite.wordpress.com @vipulgupta2048 [GitHub, Facebook, LinkedIn, Gmail]

Editor's Notes

  1. I don’t consider myself to be the expert.
  2. *- *Chapter 1: Understanding VCS: Commits* [13:45] <sayan> *- Next day morning you start reading VCS, scratching your head to get around with all the terms [13:46] <sayan> *- The first one that you hit is commits, so what is commit (or snapshot?) [13:47] <sayan> *- So you thought of writing a series analogy stories to learn the concepts better :) [13:47] <sayan> *- You create a new character, Tux [13:47] <sayan> *- Tux wants to be photographer, who has just bought a new DSLR. [13:48] <sayan> *- Tux plan to be the next travel photographer, who would take the best picture from the top of Mt. Everest [13:49] <sayan> *- But Tux is a newbie, so Tux starts watching for YouTube tutorials for learning to post process the images. [13:49] <sayan> *- Tux creates a directory named *working* to put all un-processed images. <<-- mind *working* is to be focused here [13:50] <sayan> *- Then, fires up DarkTable to process the images. [13:50] <sayan> *- Every time after a set of similar operations (like crop & rotate, shadows & highlights, etc), Tux creates a copy of the *working* directory and names it `snapshot-{n}` [13:51] <sayan> *- After a couple of operations, Tux stands having "snapshot-1", "snapshot-2", "snapshot-3", .... , "snapshot-100" directories. [13:52] <sayan> *- This directories is history of how Tux developed the image over time. At any point, Tux can go back to a given snapshot and build again on top of it. Git is version control software, which means it manages changes to a project without overwriting any part of that project. And it’s not going away anytime soon, particularly since Torvalds and his fellow kernel developers employ Git to help develop the core kernel for Linux. Why use something like Git? Say you and a coworker are both updating pages on the same website. You make your changes, save them, and upload them back to the website. So far, so good. The problem comes when your coworker is working on the same page as you at the same time. One of you is about to have your work overwritten and erased. A version control application like Git keeps that from happening. You and your coworker can each upload your revisions to the same page, and Git will save two copies. Later, you can merge your changes together without losing any work along the way. You can even revert to an earlier version at any time, because Git keeps a “snapshot” of every change ever made. The problem with Git is that it’s so ancient that we have to use the command line—or Terminal if you’re a Mac user—in order to access it, typing in snippets of code like ‘90s hackers. This can be a difficult proposition for modern computer users. That’s where GitHub comes in.
  3. *- *Chapter 2: Understanding VCS: Staging Area* [13:55] <sayan> *- It's been a month now, Tux have learned a lot on post-processing images. [13:55] <sayan> *- Tux now mixes and matches multiple images file to create a snapshot directory. [13:56] <sayan> *- One day, Tux while processing the images, goes into experimental mode. [13:56] <sayan> *- and only after a while realized that the changes should be going into two [13:57] <sayan> *- different snapshot directories (`snapshot-139` & `snapshot-140`). [13:57] <sayan> *- Smart Tux quickly thought of an idea, creates a new staging directory. [13:58] <sayan> *- A staging directory works as an intermediate between the working directory [13:58] <sayan> *- and the snapshot directory. [13:58] <sayan> *- So, Tux now works on working directory, and one Tux is happy with the changes [13:59] <sayan> *- Tux moves all changed files into staging directory, and then creates a copy of the staging directory as new snapshot directory