SlideShare a Scribd company logo
1 of 29
GIT Introduction
Version Control System
Dian Sigit Prastowo & Agastyo Satriaji Idam
Problem
Version Control System
“A version control system (sometimes called revision
control) is a tool that lets you track the history and
attribution of your project files over time (stored in a
repository), and which helps the developers in the team to
work together. Modern version control systems help them
work simultaneously, in a non-blocking way, by giving
each developer his or her own sandbox, preventing their
work in progress from conflicting, and all the while
providing a mechanism to merge changes and
synchronize work.”
“Mastering Git.”
Version Control System
What is GIT?
Git is Distributed Version Control System
“Distributed means that there is no main server and all
of the full history of the project is available once you
cloned the project”
A Brief History
• In 2002, the Linux kernel project bega using a DVCS
calld BitKeeper.
• In 2005, the commercial company that developed
BitKeeper broke down, and the tool’s free-of-charge
status was revoked.
• This prompted the Linux development community
(and in particular Linux Trovalds, the creator of Linux)
to develop their own tool - GIT
First of all, definitions
• Working tree
A directory in your filesystem that is
associated with a repository, containing files &
sub-directories
• Repository
A collection of commits & branches, saved
in the .git directory
• Commit
A Snapshot of your working tree at a certain
point in time, identified by a revision number.
• HEAD
The name for the commit thats currently
checked out in.
GIT
• You can imagine git as something that
sits on top of your file system and
manipulates files.
• This “something” is a tree structure
where each commit creates a new
node in that tree.
• Nearly all git commands actually serve
to navigate on this tree and to
manipulate it accordingly.
GIT Commands
Version Control System
Dian Sigit Prastowo & Agastyo Satriaji Idam
Commands
• git config
• git init
• git add
• git rm
• git commit
• git log
• git diff
• git status
• git reset
• git branch
• git checkout
• git merge
• git remote
• git clone
• git push
• git pull
Install Git on Windows
• Download the latest Git for Windows installer git
• Started the installer, you should see the Git Setup wizard screen.
Follow the Next and Finish prompts to complete the installation.
• Open a Command Prompt (or Git Bash if during installation you
elected not to use Git from the Windows Command Prompt).
• Run the following commands to configure your Git username and
email using the following commands:
$ git config --global user.name “Dian Sigit”
$ git config --global user.email
"diansigit.p@gmail.com”
Configuration
Local Repository
git init
git-init - Create an empty Git repository or reinitialize an existing one
Local Repository
git add
git-add - Add file contents to the index
Local Repository
git rm
git-rm - Remove files from the working tree and from the index
Local Repository
git commit
git-commit - Record changes to the repository
Local Repository
git commit
git-commit - Record changes to the repository
Local Repository
git log
git-log - Show commit logs
Local Repository
git diff
git-diff - Show changes between commits, commit and working tree, etc
Local Repository
git status
git-status - Show the working tree status
Local Repository
git reset
git-reset - Reset current HEAD to the specified state
Local Repository
git branch
git-branch - List, create, or delete branches
Local Repository
git checkout
git-checkout - Switch branches or restore working tree files
Local Repository
git merge
git-merge - Join two or more development histories together
Installing SSH keys on
Windows
• To access your Git repositories you will need to create and
install SSH keys
• Generating a key pair, ssh-keygen -t rsa
• Copy the public key, and paste on gitlab SSH Key Settings,
cat ~/.ssh/id_rsa.pub | clip
• Checking your connection, ssh git@gitlab.uii.ac.id
Collaboration Repository
git remote
git-remote - Manage set of tracked repositories
Collaboration Repository
git clone
git-clone - Clone a repository into a new directory
Collaboration Repository
git push
git-push - Update remote refs along with associated objects
Collaboration Repository
git pull
git-pull - Fetch from and integrate with another repository or a local branch

More Related Content

What's hot

Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash CourseNilay Binjola
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdfTilton2
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHubNicolás Tourné
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagramsDilum Navanjana
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners HubSpot
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Simplilearn
 
Dealing with Merge Conflicts in Git
Dealing with Merge Conflicts in GitDealing with Merge Conflicts in Git
Dealing with Merge Conflicts in Gitgittower
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version ControlSourabh Sahu
 

What's hot (20)

Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
git and github
git and githubgit and github
git and github
 
Basic Git Intro
Basic Git IntroBasic Git Intro
Basic Git Intro
 
Git basic
Git basicGit basic
Git basic
 
Git and Github slides.pdf
Git and Github slides.pdfGit and Github slides.pdf
Git and Github slides.pdf
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Git commands
Git commandsGit commands
Git commands
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
 
Dealing with Merge Conflicts in Git
Dealing with Merge Conflicts in GitDealing with Merge Conflicts in Git
Dealing with Merge Conflicts in Git
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Introduction to Git and GitHub
Introduction to Git and GitHubIntroduction to Git and GitHub
Introduction to Git and GitHub
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
 

Viewers also liked

Git 101 Presentation
Git 101 PresentationGit 101 Presentation
Git 101 PresentationScott Chacon
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git RightSven Peters
 
寫給大家的 Git 教學
寫給大家的 Git 教學寫給大家的 Git 教學
寫給大家的 Git 教學littlebtc
 
[NDC16] Effective Git
[NDC16] Effective Git[NDC16] Effective Git
[NDC16] Effective GitChanwoong Kim
 
いつやるの?Git入門 v1.1.0
いつやるの?Git入門 v1.1.0いつやるの?Git入門 v1.1.0
いつやるの?Git入門 v1.1.0Masakazu Matsushita
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideRohit Arora
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to gitJoel Krebs
 
Basic principles of Git
Basic principles of GitBasic principles of Git
Basic principles of Gitphuongvohuy
 
Git-ing out of your git messes
Git-ing out of  your git messesGit-ing out of  your git messes
Git-ing out of your git messesKatie Sylor-Miller
 
GIT Workflows
GIT Workflows GIT Workflows
GIT Workflows BraveBits
 
introduction of GIT System
introduction of GIT Systemintroduction of GIT System
introduction of GIT SystemDr Laxman Khanal
 

Viewers also liked (20)

Git 101 Presentation
Git 101 PresentationGit 101 Presentation
Git 101 Presentation
 
Getting Git Right
Getting Git RightGetting Git Right
Getting Git Right
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Getting Git
Getting GitGetting Git
Getting Git
 
寫給大家的 Git 教學
寫給大家的 Git 教學寫給大家的 Git 教學
寫給大家的 Git 教學
 
[NDC16] Effective Git
[NDC16] Effective Git[NDC16] Effective Git
[NDC16] Effective Git
 
Git Tutorial 教學
Git Tutorial 教學Git Tutorial 教學
Git Tutorial 教學
 
いつやるの?Git入門 v1.1.0
いつやるの?Git入門 v1.1.0いつやるの?Git入門 v1.1.0
いつやるの?Git入門 v1.1.0
 
Git learning
Git learningGit learning
Git learning
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git Branching Model
Git Branching ModelGit Branching Model
Git Branching Model
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
 
git command
git commandgit command
git command
 
Git studynotes
Git studynotesGit studynotes
Git studynotes
 
Basic principles of Git
Basic principles of GitBasic principles of Git
Basic principles of Git
 
Git-ing out of your git messes
Git-ing out of  your git messesGit-ing out of  your git messes
Git-ing out of your git messes
 
GIT Workflows
GIT Workflows GIT Workflows
GIT Workflows
 
introduction of GIT System
introduction of GIT Systemintroduction of GIT System
introduction of GIT System
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 

Similar to GIT Introduction for Version Control

Similar to GIT Introduction for Version Control (20)

Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
Git 101
Git 101Git 101
Git 101
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
 
Git introduction
Git introductionGit introduction
Git introduction
 
Git hub
Git hubGit hub
Git hub
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Git Workshop : Getting Started
Git Workshop : Getting StartedGit Workshop : Getting Started
Git Workshop : Getting Started
 
Hacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHubHacktoberfest intro to Git and GitHub
Hacktoberfest intro to Git and GitHub
 
Git
GitGit
Git
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git in a nutshell
Git in a nutshellGit in a nutshell
Git in a nutshell
 
Git.pptx
Git.pptxGit.pptx
Git.pptx
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
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
 
Git and github
Git and githubGit and github
Git and github
 
Git Training
Git TrainingGit Training
Git Training
 

Recently uploaded

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 

Recently uploaded (20)

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 

GIT Introduction for Version Control

  • 1. GIT Introduction Version Control System Dian Sigit Prastowo & Agastyo Satriaji Idam
  • 3. Version Control System “A version control system (sometimes called revision control) is a tool that lets you track the history and attribution of your project files over time (stored in a repository), and which helps the developers in the team to work together. Modern version control systems help them work simultaneously, in a non-blocking way, by giving each developer his or her own sandbox, preventing their work in progress from conflicting, and all the while providing a mechanism to merge changes and synchronize work.” “Mastering Git.”
  • 5. What is GIT? Git is Distributed Version Control System “Distributed means that there is no main server and all of the full history of the project is available once you cloned the project”
  • 6. A Brief History • In 2002, the Linux kernel project bega using a DVCS calld BitKeeper. • In 2005, the commercial company that developed BitKeeper broke down, and the tool’s free-of-charge status was revoked. • This prompted the Linux development community (and in particular Linux Trovalds, the creator of Linux) to develop their own tool - GIT
  • 7. First of all, definitions • Working tree A directory in your filesystem that is associated with a repository, containing files & sub-directories • Repository A collection of commits & branches, saved in the .git directory • Commit A Snapshot of your working tree at a certain point in time, identified by a revision number. • HEAD The name for the commit thats currently checked out in.
  • 8. GIT • You can imagine git as something that sits on top of your file system and manipulates files. • This “something” is a tree structure where each commit creates a new node in that tree. • Nearly all git commands actually serve to navigate on this tree and to manipulate it accordingly.
  • 9. GIT Commands Version Control System Dian Sigit Prastowo & Agastyo Satriaji Idam
  • 10. Commands • git config • git init • git add • git rm • git commit • git log • git diff • git status • git reset • git branch • git checkout • git merge • git remote • git clone • git push • git pull
  • 11. Install Git on Windows • Download the latest Git for Windows installer git • Started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. • Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt). • Run the following commands to configure your Git username and email using the following commands: $ git config --global user.name “Dian Sigit” $ git config --global user.email "diansigit.p@gmail.com”
  • 13. Local Repository git init git-init - Create an empty Git repository or reinitialize an existing one
  • 14. Local Repository git add git-add - Add file contents to the index
  • 15. Local Repository git rm git-rm - Remove files from the working tree and from the index
  • 16. Local Repository git commit git-commit - Record changes to the repository
  • 17. Local Repository git commit git-commit - Record changes to the repository
  • 18. Local Repository git log git-log - Show commit logs
  • 19. Local Repository git diff git-diff - Show changes between commits, commit and working tree, etc
  • 20. Local Repository git status git-status - Show the working tree status
  • 21. Local Repository git reset git-reset - Reset current HEAD to the specified state
  • 22. Local Repository git branch git-branch - List, create, or delete branches
  • 23. Local Repository git checkout git-checkout - Switch branches or restore working tree files
  • 24. Local Repository git merge git-merge - Join two or more development histories together
  • 25. Installing SSH keys on Windows • To access your Git repositories you will need to create and install SSH keys • Generating a key pair, ssh-keygen -t rsa • Copy the public key, and paste on gitlab SSH Key Settings, cat ~/.ssh/id_rsa.pub | clip • Checking your connection, ssh git@gitlab.uii.ac.id
  • 26. Collaboration Repository git remote git-remote - Manage set of tracked repositories
  • 27. Collaboration Repository git clone git-clone - Clone a repository into a new directory
  • 28. Collaboration Repository git push git-push - Update remote refs along with associated objects
  • 29. Collaboration Repository git pull git-pull - Fetch from and integrate with another repository or a local branch