際際滷

際際滷Share a Scribd company logo
GIT Training
Arashdeep Kaur
Why is Git Around?
 Consider we are working on some project, there are fi, f2, f3 files in one folder and
we want them to save them after changes. This will fill our hard disk if we want to
keep each version of file.
Project.zip Projectfinal.zip Projectfinal1.zip Projectfinal2.zip
Version Control System(VCS)
 a way to manage files and directories.
 track changes over time.
 recall previous versions.
 source control is subset of VCS.
 sharing on multiple computers
Local VCS
Centralized VCS
 Subversion (SVN)
 checkout
 update
 commit
Distributed VCS
 GIT
 Mercurial
GIT
 Created by Linus Torvalds, creator of Linux, in 2005
 Came out of Linux development community
 Designed to do version control on Linux kernel
 Goals of Git:
- Speed
- Support for non-linear development (thousands of parallel branches)
- Fully distributed
- Able to handle large projects efficiently
Features of GIT
 Snapshots, NOT differences
 Nearly every operation is local.
 Git has Integrity(checksum)
Storing data as snapshots of the project over time
Git installation
Lets Start with GIT
 Enter these lines (with appropriate changes):
git config --global user.name "John Smith
git config --global user.email jsmith@seas.upenn.edu
The Three stage
architecture
 You modify files in your working
tree.
 You selectively stage just those
changes you want to be part of
your next commit, which
adds only those changes to the
staging area.
 You do a commit, which takes the
files as they are in the staging area
and stores that snapshot
permanently to your Git directory
Create and fill a repository
cd to the project directory you want to use
 This creates the repository (a directory named .git)
 You seldom (if ever) need to look inside this directory
Type in git init
 Period means this directory
 This adds all your current files to the repository
Type in git add .
 You can use a different commit message, if you like
Type in git commit m "Initial commit"
Clone a repository from elsewhere
 git clone URL
 git clone
https://github.com/ishant
k/DSA2020-1
 Instead of getting just a
working copy, Git receives a
full copy of nearly all data that
the server has.
Lifecycle of status of files
Lifecycle of status of your files.
Working with your
own repository
 A head is a reference to a commit
object
 The current head is called HEAD
(all caps)
 This results in a linear graph:
A  B  C   HEAD
Back tracking, Removing, Rename
 Rolling back to last commit
$ git checkout HEAD [filename]
$ git diff
 Skipping staging area
$ git commit a m your message
 Remove File from Staging
$ git reset HEAD [filename]
 Remove file in Git
$ git rm [filename]
 Rename file in Git
$ git mv [current_filename] [changed_filename]
Initial commit
Second commit
Third commit
Bob gets a copy
Fourth commit
Merge
Bobs commit
Multiple versions
Branching
 View branch
 Make new branch
 Merge branch
 Delete Branch
Pushing git branches
GITHUB
 GitHub.com is a site for online storage of Git repositories.
 You can create a remote repo there and push code to it.
 Many open source projects use it, such as the Linux kernel.
 You can get free space for open source projects, or you can pay for private projects.
 Question: Do I always have to use GitHub to use Git?
 Answer: No! You can use Git locally for your own purposes.  Or you or someone
else could set up a server to share files.  Or you could share a repo with users on
the same file system, as long everyone has the needed file permissions).

More Related Content

What's hot (20)

Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
Gandhi Ramu
Mini git tutorial
Mini git tutorialMini git tutorial
Mini git tutorial
Cristian Lucchesi
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
Git the fast version control system
Git the fast version control systemGit the fast version control system
Git the fast version control system
Jeroen Rosenberg
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Rueful Robin
How to store large binary files in git repositories
How to store large binary files in git repositoriesHow to store large binary files in git repositories
How to store large binary files in git repositories
Matt Aunger
Git Presentation
Git PresentationGit Presentation
Git Presentation
Prem Aseem Jain
Git theory
Git   theoryGit   theory
Git theory
hariprasad1035
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
Safique Ahmed Faruque
Git basics
Git basicsGit basics
Git basics
Amit Sawhney
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Colin Su
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
DevOpsDays Tel Aviv
Github
GithubGithub
Github
IFEDAYO ADEYEMI
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
Yan Vugenfirer
Git ritesh venture_pact
Git ritesh venture_pactGit ritesh venture_pact
Git ritesh venture_pact
riteshtandon23
Ti li畛u s畛 d畛ng GitHub
Ti li畛u s畛 d畛ng GitHubTi li畛u s畛 d畛ng GitHub
Ti li畛u s畛 d畛ng GitHub
viet nghiem
Git and fundamentals
Git and fundamentalsGit and fundamentals
Git and fundamentals
Naincy Gupta
Version control system
Version control systemVersion control system
Version control system
Andrew Liu
Git & git hub
Git & git hubGit & git hub
Git & git hub
PreetikaKanojia
Git slides
Git slidesGit slides
Git slides
Nguyen Van Hung
Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
Gandhi Ramu
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
Git the fast version control system
Git the fast version control systemGit the fast version control system
Git the fast version control system
Jeroen Rosenberg
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overviewGit and GitHub | Concept about Git and GitHub Process | Git Process overview
Git and GitHub | Concept about Git and GitHub Process | Git Process overview
Rueful Robin
How to store large binary files in git repositories
How to store large binary files in git repositoriesHow to store large binary files in git repositories
How to store large binary files in git repositories
Matt Aunger
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Colin Su
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
Terrible Ideas in Git - Corey Quinn, FutureAdvisor - DevOpsDays Tel Aviv 2015
DevOpsDays Tel Aviv
Contributing to open source using Git
Contributing to open source using GitContributing to open source using Git
Contributing to open source using Git
Yan Vugenfirer
Git ritesh venture_pact
Git ritesh venture_pactGit ritesh venture_pact
Git ritesh venture_pact
riteshtandon23
Ti li畛u s畛 d畛ng GitHub
Ti li畛u s畛 d畛ng GitHubTi li畛u s畛 d畛ng GitHub
Ti li畛u s畛 d畛ng GitHub
viet nghiem
Git and fundamentals
Git and fundamentalsGit and fundamentals
Git and fundamentals
Naincy Gupta
Version control system
Version control systemVersion control system
Version control system
Andrew Liu

Similar to Git training (basic) (20)

Mini-training: Lets Git It!
Mini-training: Lets Git It!Mini-training: Lets Git It!
Mini-training: Lets Git It!
Betclic Everest Group Tech Team
CSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITCSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GIT
PouriaQashqai1
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
Git and github
Git and githubGit and github
Git and github
Teodora Ahkozidou
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
Soumen Debgupta
Git introduction
Git introductionGit introduction
Git introduction
satyendrajaladi
Git and Github
Git and GithubGit and Github
Git and Github
Teodora Ahkozidou
github ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know abgithub ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know ab
infoinnext
Introduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptxIntroduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptx
Abdul Salam
Git 101
Git 101Git 101
Git 101
jayrparro
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
Roniel Lopez Alvarez
390a gitintro 12au
390a gitintro 12au390a gitintro 12au
390a gitintro 12au
Nguyen Van Hung
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
Poornachandrakashi
sample.pptx
sample.pptxsample.pptx
sample.pptx
UshaSuray
Learning git
Learning gitLearning git
Learning git
Sid Anand
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
Ashok Kumar Satuluri
391Lecture0909 Vision control of git.ppt
391Lecture0909 Vision control of git.ppt391Lecture0909 Vision control of git.ppt
391Lecture0909 Vision control of git.ppt
GevitaChinnaiah
Git is a distributed version control system .
Git is a distributed version control system .Git is a distributed version control system .
Git is a distributed version control system .
HELLOWorld889594
GIT-FirstPart.ppt
GIT-FirstPart.pptGIT-FirstPart.ppt
GIT-FirstPart.ppt
ssusered2ec2
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
Manish Chakravarty
CSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GITCSE 390 Lecture 9 - Version Control with GIT
CSE 390 Lecture 9 - Version Control with GIT
PouriaQashqai1
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
github ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know abgithub ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know ab
infoinnext
Introduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptxIntroduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptx
Abdul Salam
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
Poornachandrakashi
sample.pptx
sample.pptxsample.pptx
sample.pptx
UshaSuray
Learning git
Learning gitLearning git
Learning git
Sid Anand
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
Ashok Kumar Satuluri
391Lecture0909 Vision control of git.ppt
391Lecture0909 Vision control of git.ppt391Lecture0909 Vision control of git.ppt
391Lecture0909 Vision control of git.ppt
GevitaChinnaiah
Git is a distributed version control system .
Git is a distributed version control system .Git is a distributed version control system .
Git is a distributed version control system .
HELLOWorld889594
GIT-FirstPart.ppt
GIT-FirstPart.pptGIT-FirstPart.ppt
GIT-FirstPart.ppt
ssusered2ec2
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
Manish Chakravarty

Recently uploaded (20)

The-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
The-Future-of-Artificial-Intelligence-Transforming-Industries-and-SocietyThe-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
The-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
KARLO
Data Modelling For Software Engineers (Devoxx GR 2025).pdf
Data Modelling For Software Engineers (Devoxx GR 2025).pdfData Modelling For Software Engineers (Devoxx GR 2025).pdf
Data Modelling For Software Engineers (Devoxx GR 2025).pdf
Scott Sosna
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEA
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEAQ1 FY26 TUG Leader Quarterly Call - APAC / EMEA
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEA
lward7
SaaS Product Development Best Practices
SaaS Product Development Best PracticesSaaS Product Development Best Practices
SaaS Product Development Best Practices
ApptDev
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic RelationshipTrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc
Ricardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno - A Structural CAD TechnicianRicardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno
Transactional Outbox & Inbox Patterns.pptx
Transactional Outbox & Inbox Patterns.pptxTransactional Outbox & Inbox Patterns.pptx
Transactional Outbox & Inbox Patterns.pptx
Maysam Mousa
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdfWhat is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
Yodaplus Technologies Private Limited
Human Centered Design By Gnanasambandham
Human Centered Design By GnanasambandhamHuman Centered Design By Gnanasambandham
Human Centered Design By Gnanasambandham
Gnanasambandham Anbazhagan CSP, CSM, CSPO
AC2-Agile-Agile concepts in an enterprise environment
AC2-Agile-Agile concepts in an enterprise environmentAC2-Agile-Agile concepts in an enterprise environment
AC2-Agile-Agile concepts in an enterprise environment
Dennis Van Aelst
FutureProofing the Nordic Economy with GenAI
FutureProofing the Nordic Economy with GenAIFutureProofing the Nordic Economy with GenAI
FutureProofing the Nordic Economy with GenAI
Pete Nieminen
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
Vadim Nareyko
Webinar - Protecting Your Microsoft 365 Data
Webinar - Protecting Your Microsoft 365 DataWebinar - Protecting Your Microsoft 365 Data
Webinar - Protecting Your Microsoft 365 Data
MSP360
AC3-SCRUM-Agile concepts in an enterprise environment
AC3-SCRUM-Agile concepts in an enterprise environmentAC3-SCRUM-Agile concepts in an enterprise environment
AC3-SCRUM-Agile concepts in an enterprise environment
Dennis Van Aelst
Introduction to Generative AI refers to a subset of artificial intelligence
Introduction to Generative AI refers to a subset of artificial intelligenceIntroduction to Generative AI refers to a subset of artificial intelligence
Introduction to Generative AI refers to a subset of artificial intelligence
Kongu Engineering College, Perundurai, Erode
Threat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community DayThreat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community Day
Teri Radichel
Build With AI X GDG Harare Beginners .pdf
Build With AI X GDG Harare Beginners .pdfBuild With AI X GDG Harare Beginners .pdf
Build With AI X GDG Harare Beginners .pdf
Google Developer Group - Harare
Fran巽ais Patch Tuesday - Avril
Fran巽ais Patch Tuesday - AvrilFran巽ais Patch Tuesday - Avril
Fran巽ais Patch Tuesday - Avril
Ivanti
Presentation Session 4 -Agent Builder.pdf
Presentation Session 4 -Agent Builder.pdfPresentation Session 4 -Agent Builder.pdf
Presentation Session 4 -Agent Builder.pdf
Mukesh Kala
Meet, Greet, and Explore Agentic AI with UiPath Scotland
Meet, Greet, and Explore Agentic AI with UiPath ScotlandMeet, Greet, and Explore Agentic AI with UiPath Scotland
Meet, Greet, and Explore Agentic AI with UiPath Scotland
UiPathCommunity
The-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
The-Future-of-Artificial-Intelligence-Transforming-Industries-and-SocietyThe-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
The-Future-of-Artificial-Intelligence-Transforming-Industries-and-Society
KARLO
Data Modelling For Software Engineers (Devoxx GR 2025).pdf
Data Modelling For Software Engineers (Devoxx GR 2025).pdfData Modelling For Software Engineers (Devoxx GR 2025).pdf
Data Modelling For Software Engineers (Devoxx GR 2025).pdf
Scott Sosna
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEA
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEAQ1 FY26 TUG Leader Quarterly Call - APAC / EMEA
Q1 FY26 TUG Leader Quarterly Call - APAC / EMEA
lward7
SaaS Product Development Best Practices
SaaS Product Development Best PracticesSaaS Product Development Best Practices
SaaS Product Development Best Practices
ApptDev
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic RelationshipTrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc Webinar - Data Privacy and Cyber Security: A Symbiotic Relationship
TrustArc
Ricardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno - A Structural CAD TechnicianRicardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno - A Structural CAD Technician
Ricardo Jebb Bruno
Transactional Outbox & Inbox Patterns.pptx
Transactional Outbox & Inbox Patterns.pptxTransactional Outbox & Inbox Patterns.pptx
Transactional Outbox & Inbox Patterns.pptx
Maysam Mousa
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdfWhat is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
What is MCP and Why Its Critical for the Future of Multimodal AI (1).pdf
Yodaplus Technologies Private Limited
AC2-Agile-Agile concepts in an enterprise environment
AC2-Agile-Agile concepts in an enterprise environmentAC2-Agile-Agile concepts in an enterprise environment
AC2-Agile-Agile concepts in an enterprise environment
Dennis Van Aelst
FutureProofing the Nordic Economy with GenAI
FutureProofing the Nordic Economy with GenAIFutureProofing the Nordic Economy with GenAI
FutureProofing the Nordic Economy with GenAI
Pete Nieminen
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
AI in Bioinformatics: How Artificial Intelligence is Revolutionizing Healthca...
Vadim Nareyko
Webinar - Protecting Your Microsoft 365 Data
Webinar - Protecting Your Microsoft 365 DataWebinar - Protecting Your Microsoft 365 Data
Webinar - Protecting Your Microsoft 365 Data
MSP360
AC3-SCRUM-Agile concepts in an enterprise environment
AC3-SCRUM-Agile concepts in an enterprise environmentAC3-SCRUM-Agile concepts in an enterprise environment
AC3-SCRUM-Agile concepts in an enterprise environment
Dennis Van Aelst
Threat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community DayThreat Modeling a Batch Job System - AWS Security Community Day
Threat Modeling a Batch Job System - AWS Security Community Day
Teri Radichel
Fran巽ais Patch Tuesday - Avril
Fran巽ais Patch Tuesday - AvrilFran巽ais Patch Tuesday - Avril
Fran巽ais Patch Tuesday - Avril
Ivanti
Presentation Session 4 -Agent Builder.pdf
Presentation Session 4 -Agent Builder.pdfPresentation Session 4 -Agent Builder.pdf
Presentation Session 4 -Agent Builder.pdf
Mukesh Kala
Meet, Greet, and Explore Agentic AI with UiPath Scotland
Meet, Greet, and Explore Agentic AI with UiPath ScotlandMeet, Greet, and Explore Agentic AI with UiPath Scotland
Meet, Greet, and Explore Agentic AI with UiPath Scotland
UiPathCommunity

Git training (basic)

  • 2. Why is Git Around? Consider we are working on some project, there are fi, f2, f3 files in one folder and we want them to save them after changes. This will fill our hard disk if we want to keep each version of file. Project.zip Projectfinal.zip Projectfinal1.zip Projectfinal2.zip
  • 3. Version Control System(VCS) a way to manage files and directories. track changes over time. recall previous versions. source control is subset of VCS. sharing on multiple computers
  • 5. Centralized VCS Subversion (SVN) checkout update commit
  • 7. GIT Created by Linus Torvalds, creator of Linux, in 2005 Came out of Linux development community Designed to do version control on Linux kernel Goals of Git: - Speed - Support for non-linear development (thousands of parallel branches) - Fully distributed - Able to handle large projects efficiently
  • 8. Features of GIT Snapshots, NOT differences Nearly every operation is local. Git has Integrity(checksum) Storing data as snapshots of the project over time
  • 10. Lets Start with GIT Enter these lines (with appropriate changes): git config --global user.name "John Smith git config --global user.email jsmith@seas.upenn.edu
  • 11. The Three stage architecture You modify files in your working tree. You selectively stage just those changes you want to be part of your next commit, which adds only those changes to the staging area. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory
  • 12. Create and fill a repository cd to the project directory you want to use This creates the repository (a directory named .git) You seldom (if ever) need to look inside this directory Type in git init Period means this directory This adds all your current files to the repository Type in git add . You can use a different commit message, if you like Type in git commit m "Initial commit"
  • 13. Clone a repository from elsewhere git clone URL git clone https://github.com/ishant k/DSA2020-1 Instead of getting just a working copy, Git receives a full copy of nearly all data that the server has.
  • 14. Lifecycle of status of files Lifecycle of status of your files.
  • 15. Working with your own repository A head is a reference to a commit object The current head is called HEAD (all caps) This results in a linear graph: A B C HEAD
  • 16. Back tracking, Removing, Rename Rolling back to last commit $ git checkout HEAD [filename] $ git diff Skipping staging area $ git commit a m your message Remove File from Staging $ git reset HEAD [filename] Remove file in Git $ git rm [filename] Rename file in Git $ git mv [current_filename] [changed_filename]
  • 17. Initial commit Second commit Third commit Bob gets a copy Fourth commit Merge Bobs commit Multiple versions
  • 18. Branching View branch Make new branch Merge branch Delete Branch
  • 20. GITHUB GitHub.com is a site for online storage of Git repositories. You can create a remote repo there and push code to it. Many open source projects use it, such as the Linux kernel. You can get free space for open source projects, or you can pay for private projects. Question: Do I always have to use GitHub to use Git? Answer: No! You can use Git locally for your own purposes. Or you or someone else could set up a server to share files. Or you could share a repo with users on the same file system, as long everyone has the needed file permissions).