SlideShare a Scribd company logo
www.prowesssoft.com
PROWESS
SOFTWARE
Delivering Integration Services with Passion
GITHUB DEMO
27 Mar 2024
www.prowesssoft.com
Executive Summary
AGENDA
• Git fundamentals
• Git clients
• Git setup
• Git commands
• Working with people
• Git conflicts/merging
Current Project
 Development
1. JSW
www.prowesssoft.com
git
git is an open source,
distributed version control
system designed for speed
and efficiency
www.prowesssoft.com
git
git is an open source,
distributed version control
system designed for speed
and efficiency
www.prowesssoft.com
git
git is an open source,
distributed version control
system designed for speed
and efficiency
www.prowesssoft.com
git
git is an open source,
distributed version control
system designed for speed
and efficiency
(almost) everything is local
www.prowesssoft.com
No Network needed for
(almost) everything is local
• Performing a diff
• Viewing file history
• Committing changes
• Merging branches
• Obtaining any other revision of a
file
• Switching branches
www.prowesssoft.com
git
git is an open source,
distributed version control
system designed for speed
and efficiency
http://bit.ly/git-linus-intro
ttp://bit.ly/git-advantages
More Advantages
www.prowesssoft.com
installing git
http://git-scm.com/downloads
www.prowesssoft.com
getting setup ...
$ git config --global user.name
“<YOUR_NAME>”
$ git config --global user.email
“<YOUR_EMAIL>”
or edit them in ~/.gitconfig
www.prowesssoft.com
lets dive in..
gitref.org/
• Creating New Repo
• Committing
• Branching/Merging
• InspectionCloning a
RepoUpdating
www.prowesssoft.com
lets dive in..
• Creating New Repo
• Committing
• Branching/Merging
• Inspection
• Cloning a Repo
• Updating
http://git-scm.com/docs
www.prowesssoft.com
Git Commands
$ git init
$ ls -al
$ git init
$ ls -al
$ mkdir workspace
$ cd workspace
Initialized empty Git repository in ../workspace/.git/
drwxr-xr-x 10 Shreyas staff 340 Jan 15 17:22
.git
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ cd .git
$ tree -a
www.prowesssoft.com
Git Commands
$ git status
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ cd ..
$ touch testfile.md
branch name
staging area
www.prowesssoft.com
Git Commands
$ git add <filename>
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
staging area
$ git status
www.prowesssoft.com
Git Commands
$ git commit
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
your commit msg
$ git status
www.prowesssoft.com
Git Commands
$ git reset
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
(undo add)
changes staged
changes unstaged
www.prowesssoft.com
Git Commands
$ git reset --soft HEAD^
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Updating
• Inspection
• Cloning A Repo
(undo a commit and
redo)
$ git reset --hard
HEAD~3
Rewind the branch to get rid of last three commits
http://git-scm.com/docs/git-
reset
http://git-scm.com/docs/git-
revert.html
learn more here :
also refer
git revert :
http://git-scm.com/docs/git-stash
git stash :
www.prowesssoft.com
Git Commands
$ git rm <filename>
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
remove a file from the
repo
as expected, you will need to commit the
change
$ git mv <filename>
move/rename a file from the repo
as expected, you will need to commit the
change
www.prowesssoft.com
Git Commands
$ git branch
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
list of branches
$ git branch <branchname> new branch
$ git checkout
<branchname>
switch
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
new branch
dev
switch branch
branch list
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ git merge <branchname> merge
branches
branch merge
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ git log
--graph
--decorate
--abbrev-commit
--all
--pretty=oneline
text-based graph :)
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
~/.gitconfig
[alias]
l = log --pretty=oneline -n 20 --graph
www.prowesssoft.com
Git Commands
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ gitk
www.prowesssoft.com
GitHub
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
$ git pull
$ git push
= git fetch + git merge
www.prowesssoft.com
GitHub
• Creating New
Repo
• Committing
• Branching/Mergin
g
• Inspection
• Cloning a Repo
• Updating
GitHub Pull Request
INDIA-Hyderabad
Suite No.306, 1102 A & B, 1203B, Manjeera
Trinity Corporate, JNTU Road, KPHB Colony,
Hyderabad,
Telangana - 500072.
Ph: +91 40 6909 1100
INDIA - Khammam
Khammam IT hub, 4th Floor,
Indira Nagar Colony
Khammam, Telangana 507002
Ph: +91 40 6909 1100
INDIA - Bangalore
“Regus Business Centre”, Ground Floor,
Beech E-1 Manyata Embassy Business Park, Outer
Ring Road, Nagawara,
Bangalore - 560045
USA - Atlanta
5955 Pkwy N Blvd, Suite C,
Cumming, GA 30040
Ph: +1 678 386 7472
SINGAPORE
10 Anson Road,
#29-03A, International Plaza
Singapore 079903
Thank You!
www.prowesssoft.com info@prowesssoft.com

More Related Content

PPT
Git-GitHub.ppt for teaching all college stidents
PPT
Git-GitHub.ppt Diploma in computer. engineering
PPT
Report about the dangers of git and github on the environment
PPT
Distributed Version control using Git and Github
PPT
B4usolution git git-hub
PPTX
Git and Github workshop GDSC MLRITM
PDF
簡單介紹git
PDF
Git Tutorial I
Git-GitHub.ppt for teaching all college stidents
Git-GitHub.ppt Diploma in computer. engineering
Report about the dangers of git and github on the environment
Distributed Version control using Git and Github
B4usolution git git-hub
Git and Github workshop GDSC MLRITM
簡單介紹git
Git Tutorial I

Similar to Git demo for beginners-Learning path to evolve (20)

PDF
GIT_GITHUB_2016_06_17
PPTX
Introduction into Git
ZIP
Beginner's Guide to Version Control with Git
PPTX
Git.pptx
PPTX
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
KEY
Git Tech Talk
PPT
Git workflow libre semikov
PPTX
PDF
Git Educated About Git - 20 Essential Commands
PDF
Introduction To Git
PDF
Git training v10
PDF
Git & gitflow
PPTX
Introduction git
PPTX
Demystifying Git
PPTX
Demystifying Git
PDF
Git - An Introduction
PPTX
Git Ninja KT (GitHub to GitLab)
PPTX
Git session Dropsolid.com
KEY
Git Distributed Version Control System
PPTX
Introduction To Git Workshop
GIT_GITHUB_2016_06_17
Introduction into Git
Beginner's Guide to Version Control with Git
Git.pptx
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git Tech Talk
Git workflow libre semikov
Git Educated About Git - 20 Essential Commands
Introduction To Git
Git training v10
Git & gitflow
Introduction git
Demystifying Git
Demystifying Git
Git - An Introduction
Git Ninja KT (GitHub to GitLab)
Git session Dropsolid.com
Git Distributed Version Control System
Introduction To Git Workshop
Ad

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Structure & Organelles in detailed.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Presentation on HIE in infants and its manifestations
PDF
Complications of Minimal Access Surgery at WLH
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
master seminar digital applications in india
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Microbial diseases, their pathogenesis and prophylaxis
Cell Structure & Organelles in detailed.
GDM (1) (1).pptx small presentation for students
2.FourierTransform-ShortQuestionswithAnswers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Presentation on HIE in infants and its manifestations
Complications of Minimal Access Surgery at WLH
FourierSeries-QuestionsWithAnswers(Part-A).pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
master seminar digital applications in india
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Computing-Curriculum for Schools in Ghana
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Ad

Git demo for beginners-Learning path to evolve

Editor's Notes

  • #7: (almost) everything is local... branching, merging etc
  • #8: (almost) everything is local... branching, merging etc
  • #9: initially created by Linus Torvalds, now supported by a huge open source community ... field tested with Linux Kernel
  • #10: We’ll be using the git command line interface, but feel free to choose your preferred solution GUIs, Editor Extension etc
  • #18: Although, I like working in small steps, here are some shortcuts git commit -m “<your msg>” [doesn’t open up the editor for msg] git commit -am “<your msg>” [adds the files tracked and uses msg on command-line]
  • #29: show the students