ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Git
Introduction
By: Ivan Adhi Prasetya
Source:
https://en.wikipedia.org/wiki/Git
https://www.atlassian.com/git/tutorials/
https://confluence.atlassian.com
Bismillahirohmanirrohim
Assalamualaikum Warohmatullohi Wabarokatuh
Introduction
What is Git?
? Git is a version control system for tracking changes in computer files and
coordinating work on those files among multiple people. It is primarily used for
source code management in software development, but it can be used to keep
track of changes in any set of files. As a distributed revision control system it is
aimed at speed, data integrity, and support for distributed, non-linear workflows.
Source: https://en.wikipedia.org/wiki/Git
Git Concept
Snapshot
Git Concept
Snapshot structure
Git Concept
Branch
Git Concept
Branch
Git Concept
The Special Pointer: HEAD
git checkout testing
Installation
¡ñ Windows: Download installer at https://git-scm.com/download/win
¡ñ Linux (Fedora or any closely-related RPM-based distro such as RHEL or
CentOS):
sudo dnf install git-all
¡ñ Linux (Debian-based distribution like Ubuntu):
sudo apt-get install git-all
Basic Git Command
Source:
https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html
Tell Git
who you are
Configure the author name and email
address to be used with your
commits.
Note that Git strips some characters
(for example trailing periods) from
user.name.
git config --global user.name "Sam Smith"
git config --global user.email sam@example.com
Create a new
local
repository
git init
Create local repository from exsisting
source
Check out a
repository
Create a working copy of a local
repository
git clone
https://example@gitlab.co.id/binar/session1/
exampleProject.git
Add File
Add one or more files to staging
(index)
git add <filename>
Ex: git add src/Main.java
git add *
Commit
Commit changes to head (but not yet
to the remote repository)
git commit -m "Commit message"
Push
Send changes to the branch of your
remote repository
git push origin <branch>
Ex: git push origin master
Pull
Fetch and merge changes on the
remote server to your working
directory
git pull
Git introduction
Standard Git Workflow
Given Git's focus on flexibility, there is no standardized process on
how to interact with Git.
Source: https://www.atlassian.com/git/tutorials/comparing-workflows
What is a successful Git
workflow?
When evaluating a workflow for your team, it's most important that you
consider your team¡¯s culture. You want the workflow to enhance the
effectiveness of your team and not be a burden that limits productivity.
Some things to consider when evaluating a Git workflow are:
1. Does this workflow scale with team size?
2. Is it easy to undo mistakes and errors with this workflow?
3. Does this workflow impose any new unnecessary cognitive overhead to
the team?
Source: https://www.atlassian.com/git/tutorials/comparing-workflows
Workflows using Git
These workflows are designed to be Guidelines rather than Concrete Rules:
? Centralized Workflow
? Feature Branch Workflow
? Gitflow Workflow
? Forking Workflow
Centralized Workflow
Feature Branch Workflow
Gitflow Workflow
Forking Workflow
Thank You
Wassalamualaikum Warohmatullohi Wabarokatuh
Ad

Recommended

Git presentation
Git presentation
Edson Celio
?
Introduction to git & github
Introduction to git & github
Vinothini KadambavanaSundaram
?
Git strategies for DevOps
Git strategies for DevOps
Ahmad Iqbal Ali
?
Intro to git and git hub
Intro to git and git hub
JasleenSondhi
?
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Gina Bustos
?
Git n git hub
Git n git hub
Jiwon Baek
?
Git and GitGHub Basics
Git and GitGHub Basics
Aswin Barath
?
Git for Beginners
Git for Beginners
Rick Umali
?
Git tutorial git branches 20131206-Bryan
Git tutorial git branches 20131206-Bryan
LearningTech
?
Git & Github
Git & Github
Aman Lalpuria
?
Why Aren't You Using Git Flow?
Why Aren't You Using Git Flow?
John Congdon
?
Git & GitLab
Git & GitLab
Gaurav Wable
?
Introducing GitLab
Introducing GitLab
Taisuke Inoue
?
What's New for GitLab CI/CD February 2020
What's New for GitLab CI/CD February 2020
Noa Harel
?
Intro to Git & GitHub
Intro to Git & GitHub
GoogleDevelopersStud
?
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.com
B1 Systems GmbH
?
Git Flow - An Introduction
Git Flow - An Introduction
Knoldus Inc.
?
Up GitLab Presentation 2015
Up GitLab Presentation 2015
Kumaran Balachandran
?
Git & GitHub
Git & GitHub
Cuong Ngo
?
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
Noa Harel
?
Git workshop
Git workshop
Reslan Al Tinawi
?
GitHub
GitHub
ThomasLai27
?
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
Sunny Sharma
?
›]ÓÐ GUI µÄ Git
›]ÓÐ GUI µÄ Git
Chia Wei Tsai
?
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
Pedro Moreira da Silva
?
Git workflows
Git workflows
Sergiu Savva
?
Git Going w/ Git
Git Going w/ Git
heyMP
?
Git usage (Basics and workflow)
Git usage (Basics and workflow)
Yeasin Abedin
?
Git basic introduction & tutorial for begginer
Git basic introduction & tutorial for begginer
AnDiLestiAnto2
?
Git for developers
Git for developers
Hacen Dadda
?

More Related Content

What's hot (20)

Git tutorial git branches 20131206-Bryan
Git tutorial git branches 20131206-Bryan
LearningTech
?
Git & Github
Git & Github
Aman Lalpuria
?
Why Aren't You Using Git Flow?
Why Aren't You Using Git Flow?
John Congdon
?
Git & GitLab
Git & GitLab
Gaurav Wable
?
Introducing GitLab
Introducing GitLab
Taisuke Inoue
?
What's New for GitLab CI/CD February 2020
What's New for GitLab CI/CD February 2020
Noa Harel
?
Intro to Git & GitHub
Intro to Git & GitHub
GoogleDevelopersStud
?
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.com
B1 Systems GmbH
?
Git Flow - An Introduction
Git Flow - An Introduction
Knoldus Inc.
?
Up GitLab Presentation 2015
Up GitLab Presentation 2015
Kumaran Balachandran
?
Git & GitHub
Git & GitHub
Cuong Ngo
?
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
Noa Harel
?
Git workshop
Git workshop
Reslan Al Tinawi
?
GitHub
GitHub
ThomasLai27
?
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
Sunny Sharma
?
›]ÓÐ GUI µÄ Git
›]ÓÐ GUI µÄ Git
Chia Wei Tsai
?
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
Pedro Moreira da Silva
?
Git workflows
Git workflows
Sergiu Savva
?
Git Going w/ Git
Git Going w/ Git
heyMP
?
Git usage (Basics and workflow)
Git usage (Basics and workflow)
Yeasin Abedin
?
Git tutorial git branches 20131206-Bryan
Git tutorial git branches 20131206-Bryan
LearningTech
?
Why Aren't You Using Git Flow?
Why Aren't You Using Git Flow?
John Congdon
?
What's New for GitLab CI/CD February 2020
What's New for GitLab CI/CD February 2020
Noa Harel
?
GitLab as an Alternative Development Platform for Github.com
GitLab as an Alternative Development Platform for Github.com
B1 Systems GmbH
?
Git Flow - An Introduction
Git Flow - An Introduction
Knoldus Inc.
?
Introducing GitLab (September 2018)
Introducing GitLab (September 2018)
Noa Harel
?
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
Sunny Sharma
?
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
GitLab: One Tool for Software Development (2018-02-06 @ SEIUM, Braga, Portugal)
Pedro Moreira da Silva
?
Git Going w/ Git
Git Going w/ Git
heyMP
?
Git usage (Basics and workflow)
Git usage (Basics and workflow)
Yeasin Abedin
?

Similar to Git introduction (20)

Git basic introduction & tutorial for begginer
Git basic introduction & tutorial for begginer
AnDiLestiAnto2
?
Git for developers
Git for developers
Hacen Dadda
?
git.ppt.pptx power point presentation got Google internet
git.ppt.pptx power point presentation got Google internet
rani marri
?
Fundamentals and basics of Git and commands
Fundamentals and basics of Git and commands
DivyanshGupta922023
?
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
?
Do you git it
Do you git it
Hridyesh Bisht
?
Git essentials
Git essentials
Otto Kek?l?inen
?
Vincit Teatime 2015.2 - Otto Kek?l?inen: Don't be a git
Vincit Teatime 2015.2 - Otto Kek?l?inen: Don't be a git
VincitOy
?
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
fingonbinka66
?
Collaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
?
Git
Git
MD ARIFUL ISLAM
?
Introduction to Git and GitHub
Introduction to Git and GitHub
Bioinformatics and Computational Biosciences Branch
?
GIT.pptx
GIT.pptx
Soumen Debgupta
?
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
Ashok Kumar
?
Git Basics for Software Version Management
Git Basics for Software Version Management
ishanmittal49
?
Git commands
Git commands
Vivek Gupta
?
Git and github fundamentals
Git and github fundamentals
RajKharvar
?
Git presentation
Git presentation
Vikas Yaligar
?
GIT
GIT
Binu Paul
?
Git walkthrough
Git walkthrough
Bimal Jain
?
Git basic introduction & tutorial for begginer
Git basic introduction & tutorial for begginer
AnDiLestiAnto2
?
git.ppt.pptx power point presentation got Google internet
git.ppt.pptx power point presentation got Google internet
rani marri
?
Fundamentals and basics of Git and commands
Fundamentals and basics of Git and commands
DivyanshGupta922023
?
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
Kim Moir
?
Vincit Teatime 2015.2 - Otto Kek?l?inen: Don't be a git
Vincit Teatime 2015.2 - Otto Kek?l?inen: Don't be a git
VincitOy
?
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
Git Pocket Guide A Working Introduction 1st Edition Richard E. Silverman
fingonbinka66
?
Collaborative development with Git | Workshop
Collaborative development with Git | Workshop
Anuchit Chalothorn
?
Git Ninja KT (GitHub to GitLab)
Git Ninja KT (GitHub to GitLab)
Ashok Kumar
?
Git Basics for Software Version Management
Git Basics for Software Version Management
ishanmittal49
?
Git and github fundamentals
Git and github fundamentals
RajKharvar
?
Ad

Recently uploaded (20)

Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
?
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
?
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
?
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Josef Weingand
?
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
?
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
?
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
?
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
¡°MPU+: A Transformative Solution for Next-Gen AI at the Edge,¡± a Presentation...
¡°MPU+: A Transformative Solution for Next-Gen AI at the Edge,¡± a Presentation...
Edge AI and Vision Alliance
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
?
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
?
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
?
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
?
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
?
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
?
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape sch¨¹tzt, was z?hlt! Und besonders mit dem neust...
Josef Weingand
?
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
?
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
?
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
?
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
?
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
?
¡°MPU+: A Transformative Solution for Next-Gen AI at the Edge,¡± a Presentation...
¡°MPU+: A Transformative Solution for Next-Gen AI at the Edge,¡± a Presentation...
Edge AI and Vision Alliance
?
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
?
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
?
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
?
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
?
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
?
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
?
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
?
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
?
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
?
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
?
Ad

Git introduction