SlideShare a Scribd company logo
Hands on Workshop
Organized by

NIT Calicut ACM
Students Chapter
Govind Maheswaran
•
•
•

Chair, NIT Calicut ACM Students
Chapter
Foodaholic Web
Developer, Pythonista.
Experience using git for 4-5 years.

www.thegovind.com
govind_m120432cs@nitc.ac.in
facebook.com/govindmaheswaran
twitter.com/RestlessMystic
github.com/RestlessMystic
Version Control
What is git?

Why git?

Getting around git.
Hands on

Contents
“

Nobody actually creates perfect
code the first time
around, except me. But there's
only one of me.
LINUS TORVALDS

VERSION CONTROL

”
How many of you
have seen a
folder with files
named in this
manner..?
My Web Design Experiences



HTML and CSS files. Changes made to files are then interpreted in browsers.



Any major change called for a backup.



Used zipping.



Practical Concerns..?



More Critical as number of contributors increase.
Revision Control


Save not just contents, but also the changes.



Make the changes accessible.



Make the changes editable, and have the ability to rollback.



In short, Make the changes more manageable
Workshop on git
Getting Technical



Version Control systems are very critical for projects.



Bigger the project, higher the importance.



Save the files, along with changes, and who made the changes.



Make the changes manageable.
Workshop on git
More Technical


Repository



Working Copy



Locking Issues. Performance Issues. Concurrency Issues.
“ I'm an egotistical b*st*rd, and I

name all my projects after myself.
First Linux, now git.
LINUS TORVALDS

What is git?

”
git is a distributed
revision control
and source code

management
(SCM) system
with an emphasis

on speed.
git



Version Control System, Source code management system



Made by Linus Torvalds, the creator of Linux.



In 2005.



Made mainly for tracking Linux Kernel Development



Bitkeeper + Monotone + Chemical X = git.
Adding technicality..


2 data structures


:

Mutable. Stores till commit.





Index
Objects

:

Append only.

4 object types


Blob

:

Actual Files



Tree

:

Hierarchy among files



Commit

:

Makes sense among versions. Just a link of trees.



Tag

:

Metadata
Workshop on git
“

git actually has a simple
design, with stable and
reasonably well-documented
data structures and I think it's one
of the reasons git has been fairly
successful
LINUS TORVALDS

Why git?

”
Why Git.


Heavily Distributed




Supports non-linear pipelining




Multiple people, multiple files.

Compatibility with existing systems.




Every repo has full copy.

HTTP, SSH, git protocol. You say it, git has got it.

Security


Cryptographic hash is used to ensure integrity
“

We wanted a place where
people could easily share Git
repositories and also learn more
about Git – a Git hub, if you will.
CHRIS WANSTRATH

Getting Around git.

”
Git Workflow
Git Commands
git config --global user.name “Name“
git config --global user.email your.email@gmail.com
.gitignore
git init
git status
git add .
git add <filenames>
git rm <filenames>
git commit
git commit –m “Commit Message”
git log
git commit –a –m “Commit Message”

git clone
git://github.com/RestlessMystic/AutorunKiller
git add .
git commit –m “Message”
git push origin
git branch <branchname>
checkout branchname
git checkout master
git diff master branch
git reset
git revert
git checkout <commit> -- <filename>
Thank You…

More Related Content

PDF
Git para novatos
PPTX
Git hub
PPTX
PPTX
Git and github
PPTX
Git session 1
PPTX
Using Wikis With Enterprise Content and Process Management
PPTX
Git(hub) for windows developers
PDF
GitHub Workflows for Technical Communication
Git para novatos
Git hub
Git and github
Git session 1
Using Wikis With Enterprise Content and Process Management
Git(hub) for windows developers
GitHub Workflows for Technical Communication

Similar to Workshop on git (20)

PDF
Introduction to Git
PDF
Harvard ABCD-WWW Git presentation
PDF
Git: a tool for wizards
PDF
Mini git tutorial
PDF
Git hub
PDF
Git Real
PPTX
Introduction to Git and Github
PPTX
Git.From thorns to the stars
PPTX
Version Control with Git
PPTX
git Introduction.pptx
PPT
Introduction to git
PPTX
Git 101
PPT
Introduction to Git
PPTX
Git training (basic)
PDF
Git Tutorial
PPTX
git presentation
PPTX
Version controll.pptx
PDF
Introduction to Git
Introduction to Git
Harvard ABCD-WWW Git presentation
Git: a tool for wizards
Mini git tutorial
Git hub
Git Real
Introduction to Git and Github
Git.From thorns to the stars
Version Control with Git
git Introduction.pptx
Introduction to git
Git 101
Introduction to Git
Git training (basic)
Git Tutorial
git presentation
Version controll.pptx
Introduction to Git
Ad

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Trump Administration's workforce development strategy
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
01-Introduction-to-Information-Management.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
A systematic review of self-coping strategies used by university students to ...
Anesthesia in Laparoscopic Surgery in India
Microbial disease of the cardiovascular and lymphatic systems
What if we spent less time fighting change, and more time building what’s rig...
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Trump Administration's workforce development strategy
Orientation - ARALprogram of Deped to the Parents.pptx
Final Presentation General Medicine 03-08-2024.pptx
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Updated Idioms and Phrasal Verbs in English subject
01-Introduction-to-Information-Management.pdf
Weekly quiz Compilation Jan -July 25.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Ad

Workshop on git

  • 2. Organized by NIT Calicut ACM Students Chapter
  • 3. Govind Maheswaran • • • Chair, NIT Calicut ACM Students Chapter Foodaholic Web Developer, Pythonista. Experience using git for 4-5 years. www.thegovind.com govind_m120432cs@nitc.ac.in facebook.com/govindmaheswaran twitter.com/RestlessMystic github.com/RestlessMystic
  • 4. Version Control What is git? Why git? Getting around git. Hands on Contents
  • 5. “ Nobody actually creates perfect code the first time around, except me. But there's only one of me. LINUS TORVALDS VERSION CONTROL ”
  • 6. How many of you have seen a folder with files named in this manner..?
  • 7. My Web Design Experiences  HTML and CSS files. Changes made to files are then interpreted in browsers.  Any major change called for a backup.  Used zipping.  Practical Concerns..?  More Critical as number of contributors increase.
  • 8. Revision Control  Save not just contents, but also the changes.  Make the changes accessible.  Make the changes editable, and have the ability to rollback.  In short, Make the changes more manageable
  • 10. Getting Technical  Version Control systems are very critical for projects.  Bigger the project, higher the importance.  Save the files, along with changes, and who made the changes.  Make the changes manageable.
  • 12. More Technical  Repository  Working Copy  Locking Issues. Performance Issues. Concurrency Issues.
  • 13. “ I'm an egotistical b*st*rd, and I name all my projects after myself. First Linux, now git. LINUS TORVALDS What is git? ”
  • 14. git is a distributed revision control and source code management (SCM) system with an emphasis on speed.
  • 15. git  Version Control System, Source code management system  Made by Linus Torvalds, the creator of Linux.  In 2005.  Made mainly for tracking Linux Kernel Development  Bitkeeper + Monotone + Chemical X = git.
  • 16. Adding technicality..  2 data structures  : Mutable. Stores till commit.   Index Objects : Append only. 4 object types  Blob : Actual Files  Tree : Hierarchy among files  Commit : Makes sense among versions. Just a link of trees.  Tag : Metadata
  • 18. “ git actually has a simple design, with stable and reasonably well-documented data structures and I think it's one of the reasons git has been fairly successful LINUS TORVALDS Why git? ”
  • 19. Why Git.  Heavily Distributed   Supports non-linear pipelining   Multiple people, multiple files. Compatibility with existing systems.   Every repo has full copy. HTTP, SSH, git protocol. You say it, git has got it. Security  Cryptographic hash is used to ensure integrity
  • 20. “ We wanted a place where people could easily share Git repositories and also learn more about Git – a Git hub, if you will. CHRIS WANSTRATH Getting Around git. ”
  • 22. Git Commands git config --global user.name “Name“ git config --global user.email your.email@gmail.com .gitignore git init git status git add . git add <filenames> git rm <filenames> git commit git commit –m “Commit Message” git log git commit –a –m “Commit Message” git clone git://github.com/RestlessMystic/AutorunKiller git add . git commit –m “Message” git push origin git branch <branchname> checkout branchname git checkout master git diff master branch git reset git revert git checkout <commit> -- <filename>