SlideShare a Scribd company logo
Extra Bit With GIT
WHAT WILL BE OUR GOAL FOR THIS
WORKSHOP...
➢ We will help you to learn the basic functionality of Git
version control system.
➢ After completing this workshop, you will find yourself at a
moderate level of expertise in using Git version control
system from where you can take yourself to the next
levels.
TOPICS WHICH WE WILL COVER...
➣ How to create a repository
➣ How to clone a repository
➣ How to push code in a repository
➣ How to pull code from a repository
SOME KEY TERMS….
❖ Open Source
➢ denoting software for which the original source
code is made freely available and may be
redistributed and modified.
WHAT IS GIT?
➢ Git is a distributed revision control and source code
management system with an emphasis on speed.
➢ Git was initially designed and developed by Linus
Torvalds for Linux kernel development.
➢ Git is a free software distributed under the terms of the
GNU General Public License version 2.
ADVANTAGES OF GIT
➢ Free and open source
➢ Fast and Small
➢ Implicit Backup
➢ Security
➢ No need of powerful hardware
BASIC TERMINOLOGIES…..
➢Repository
It is a private workplace as a working copy. Developers make changes
in their private workplace and after commit, these changes become a
part of the repository.
➢ Working Directory
The working directory is the place where all the files of your repository
are located.
WORKFLOW OF GIT
Step 1 : You modify a file from the working directory.
Step 2 : You add these files to the staging area.
Step 3 : You perform commit operation that moves the files from the staging
area. After push operation, it stores the changes permanently to the Git
repository.
FLOW CHART
STARTING WITH GITHUB
➣ Create your account on github.
➣ Create a new repository in your profile.
➣ Copy the repository url from github.
➣ Open your terminal or bash application.
CONCEPT OF CLONING
In open source culture you can copy repository of any user
and start contributing your code in it this process is called
cloning.
Execute following command to clone any user’s repository
to your system :
$git clone url_repo
INITIALIZING GIT FOLDER
Execute following command to create a git folder in your
directory:
$ git init
The folder created is hidden with .git extension.
Use $git status command to monitor state of your git
folder
ADDING FILE TO GIT FOLDER
Execute following command to add your document to your
git folder:
$git add file_name
In case of adding multiple file use following command:
$git add .
COMMENTING TO GIT FOLDER
Execute following command to comment your added git
file:
$git commit -m “comment”
Use $git status command to monitor state of your git
folder
CREATING ORIGIN LINK
Execute following command to link your directory with
current working repository:
$git remote add origin repository_url
PUSHING INTO REPOSITORY
Execute following command to push your document to
your git repository:
$git push -u origin master
In case you want to push your document in another branch
replace master with the name of that branch
PULLING FROM REPOSITORY
Pulling from repository is done to update your git folder
with commit made by other people on your repository.
Now use github GUI to create a new file in your repository,
assume that this file is created by some other person in
current repository.
PULLING FROM REPOSITORY CONT...
Execute following command to pull commits into your git
folder:
$git pull repository_url
Use $git status command to monitor state of your git
folder
THE END
STAY TUNED…
WE WILL BE BACK WITH ADVANCE WORKSHOP ON GIT.

More Related Content

PPTX
Introduction to git and github
PPTX
Extra bit with git
PDF
Advance workshop on git
PPTX
Git and github fundamentals
PPT
GIT By Sivakrishna
PPTX
How to install and use git
PPTX
Beginner's guide to git and github
PPTX
HacktoberFest-Git&GitHub
Introduction to git and github
Extra bit with git
Advance workshop on git
Git and github fundamentals
GIT By Sivakrishna
How to install and use git
Beginner's guide to git and github
HacktoberFest-Git&GitHub

What's hot (20)

PDF
Git Version Control System
PDF
Version Control Systems with git (and github) as an example
PDF
Git 101 Workshop
PPTX
Git tutorial
PDF
Introduction to Git
PPTX
Git & GitHub
PPTX
PDF
Git and GitHub
PPTX
Web Programming - Git basics
PDF
Version Control System - Git
ODP
Git presentation
PPTX
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
PDF
What the Git? - WordCamp Atlanta
PPTX
Git Gyan
PDF
Tài liệu sử dụng GitHub
PPTX
Overview of github
PDF
Github Case Study By Amil Ali
PDF
Gitt and Git-flow
PDF
Intro to Git and GitHub
Git Version Control System
Version Control Systems with git (and github) as an example
Git 101 Workshop
Git tutorial
Introduction to Git
Git & GitHub
Git and GitHub
Web Programming - Git basics
Version Control System - Git
Git presentation
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
What the Git? - WordCamp Atlanta
Git Gyan
Tài liệu sử dụng GitHub
Overview of github
Github Case Study By Amil Ali
Gitt and Git-flow
Intro to Git and GitHub
Ad

Similar to Extra bit with git (20)

PDF
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
PPTX
GitHub Event.pptx
PPTX
Introduction to Git and Github
PPTX
Git - Simplified For Testers
PPTX
Basics of git
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPTX
tech winter break workshop on git &git hub.pptx
PPT
PPT
PDF
Version Control Systems Software Engineering
PPT
PPTX
Git and GitHub Workshop of GDG on Campus UNSTPB
PPT
git.ppt
PPTX
Git and GitHub
PPTX
Git and GitHub Presentation of GDG on Campus UNSTPB
PPTX
Git and GitHub workshop of GDG on Campus UNSTPB
PDF
GDSC ZHCET GitHub Session.pdf
PDF
A Tutorial for GitHub.pdf
PDF
A Tutorial for GitHub.pdf
PDF
Git Init (Introduction to Git)
AIS Technical Development Workshop 3: Getting Started with Git and GitHub
GitHub Event.pptx
Introduction to Git and Github
Git - Simplified For Testers
Basics of git
Git and GitHub Workshop of GDG on Campus UNSTPB
tech winter break workshop on git &git hub.pptx
Version Control Systems Software Engineering
Git and GitHub Workshop of GDG on Campus UNSTPB
git.ppt
Git and GitHub
Git and GitHub Presentation of GDG on Campus UNSTPB
Git and GitHub workshop of GDG on Campus UNSTPB
GDSC ZHCET GitHub Session.pdf
A Tutorial for GitHub.pdf
A Tutorial for GitHub.pdf
Git Init (Introduction to Git)
Ad

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Complications of Minimal Access Surgery at WLH
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Complications of Minimal Access Surgery at WLH
Supply Chain Operations Speaking Notes -ICLT Program
TR - Agricultural Crops Production NC III.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
Renaissance Architecture: A Journey from Faith to Humanism
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Anesthesia in Laparoscopic Surgery in India
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Computing-Curriculum for Schools in Ghana
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Insiders guide to clinical Medicine.pdf
O7-L3 Supply Chain Operations - ICLT Program

Extra bit with git

  • 2. WHAT WILL BE OUR GOAL FOR THIS WORKSHOP... ➢ We will help you to learn the basic functionality of Git version control system. ➢ After completing this workshop, you will find yourself at a moderate level of expertise in using Git version control system from where you can take yourself to the next levels.
  • 3. TOPICS WHICH WE WILL COVER... ➣ How to create a repository ➣ How to clone a repository ➣ How to push code in a repository ➣ How to pull code from a repository
  • 4. SOME KEY TERMS…. ❖ Open Source ➢ denoting software for which the original source code is made freely available and may be redistributed and modified.
  • 5. WHAT IS GIT? ➢ Git is a distributed revision control and source code management system with an emphasis on speed. ➢ Git was initially designed and developed by Linus Torvalds for Linux kernel development. ➢ Git is a free software distributed under the terms of the GNU General Public License version 2.
  • 6. ADVANTAGES OF GIT ➢ Free and open source ➢ Fast and Small ➢ Implicit Backup ➢ Security ➢ No need of powerful hardware
  • 7. BASIC TERMINOLOGIES….. ➢Repository It is a private workplace as a working copy. Developers make changes in their private workplace and after commit, these changes become a part of the repository. ➢ Working Directory The working directory is the place where all the files of your repository are located.
  • 8. WORKFLOW OF GIT Step 1 : You modify a file from the working directory. Step 2 : You add these files to the staging area. Step 3 : You perform commit operation that moves the files from the staging area. After push operation, it stores the changes permanently to the Git repository.
  • 10. STARTING WITH GITHUB ➣ Create your account on github. ➣ Create a new repository in your profile. ➣ Copy the repository url from github. ➣ Open your terminal or bash application.
  • 11. CONCEPT OF CLONING In open source culture you can copy repository of any user and start contributing your code in it this process is called cloning. Execute following command to clone any user’s repository to your system : $git clone url_repo
  • 12. INITIALIZING GIT FOLDER Execute following command to create a git folder in your directory: $ git init The folder created is hidden with .git extension. Use $git status command to monitor state of your git folder
  • 13. ADDING FILE TO GIT FOLDER Execute following command to add your document to your git folder: $git add file_name In case of adding multiple file use following command: $git add .
  • 14. COMMENTING TO GIT FOLDER Execute following command to comment your added git file: $git commit -m “comment” Use $git status command to monitor state of your git folder
  • 15. CREATING ORIGIN LINK Execute following command to link your directory with current working repository: $git remote add origin repository_url
  • 16. PUSHING INTO REPOSITORY Execute following command to push your document to your git repository: $git push -u origin master In case you want to push your document in another branch replace master with the name of that branch
  • 17. PULLING FROM REPOSITORY Pulling from repository is done to update your git folder with commit made by other people on your repository. Now use github GUI to create a new file in your repository, assume that this file is created by some other person in current repository.
  • 18. PULLING FROM REPOSITORY CONT... Execute following command to pull commits into your git folder: $git pull repository_url Use $git status command to monitor state of your git folder
  • 19. THE END STAY TUNED… WE WILL BE BACK WITH ADVANCE WORKSHOP ON GIT.