SlideShare une entreprise Scribd logo
1  sur  12
What is Git?
• Source Code Management (SCM) Tool.
• Version Control System (VCS) Tool.
• Keeps Track Of Changes.
• Versions Can Be Shared Between Multiple Users.
• Open Source.
How Git Works?
• Takes Snapshot Of The Changes Done.
• Each Change Updated Is Stored As Snapshot.
• Can Retrieve The Snapshot Created Previously.
• Multiple Persons Can Work And Update Files In
The Same Repository At The Same Time.
Key Terms Before Installation
• Repository
• Branch
• Branch Header
• Branch Merging
• Push and Pull
How To Install And Configure Git
• Go To http://git-scm.com/download For
Command Based Git.
• Go To http://git-scm.com/downloads/guis for
GUI Based Git Control.
• After installation, Set The PATH Environment
variable to C:Program Files (x86)Gitbin
Create Repository On Git
• Go to https://github.com/ and Signup
• A Repository is a virtual name which keeps your
project and changes made to the files. Create a
new Repository by clicking on “New repository”
button on the home page after signup up or
logging in.
• Check the option ” Initialize this repository with
a README”
Repository Operations
• The default branch name for the Repository is
“master” branch.
• Create a directory with name “gittest”. You can
use DOS command ‘md gittest’.
• To move into the directory give command ‘cd
gittest’.
• To create a git repository on the local
server(your machine) type the command
‘git init .’ This creates a new subdirectory
named .git that contains all of your necessary
repository files — a Git repository skeleton.
Repository Operations
• Now get the existing project name from
github.com into your local server repository. The
command is ‘git clone --recursive
git@github.com:riteshtandon23/gittest’ (i.e. The
SSH Path)
• Recursive is used so that any changes made to
the branches are also added in the current local
repository. Use ‘git pull’ to get all files.
• Incase facing error of unauthorized access or
permission denied you need to generate a new
pass key ‘ssh-keygen -t rsa -C
username@domain.com’
Repository Operations
• Now add some files inside your new directory
created under the folder ‘gittest’.
• This command would create a snapshot of the
current directory structure and files. Command
‘git add .’
• This commands tells that the snapshot is ready
to be committed from local to remote origin.
Command ‘git commit -m "First commit”’
• Give command ‘git push origin master’. This
would push the snapshot to the remote origin.
Branches
• A branch is created when we want to change
some code from a stabilized version.
• To create a branch, The command is ‘git branch
"branchname“’
• Also create the same branch on Github website.
• To list all branches, The command is ‘git branch’.
• Now, Create a branch on Github.com interface.
with the name ‘ritesh’.
Branches
• Now, Create a new folder in the main directory
with name of the branch, this would actually
map with the branch created on the origin.The
command is ‘md ritesh’.
• Now move into the directory having the branch
name. i.e. ‘cd ritesh’ ’. and give the command
‘git clone -b ritesh --recursive
SSH_PATH_Of_Repository’
• Now add some files into the local directory.
Branches
• To create a snapshot the command is ‘git add .’
• To prepare for commit give command ‘git
commit –am “Branch Commit”’
• To push the updated snapshot, Give the
command ‘git push origin ritesh’
• Now move into the folder inside the branch
folder(ritesh), This can be done by ‘cd
TestWebsite’.
Moving On To The Previous Versions
• To move on to the previous versions, We need
to check the previous commits done by the user.
• You can find this on the “Commits” link on the
home page of the Github page.
• On the Commits page there is list of commits
the user has done in the past. To move on to the
previous version copy the SSH code on the right
side of the commit.
• Give the command ‘git reset --hard SSHCode’
• Give comamnd ‘git pull’ to update local folder.

Contenu connexe

Tendances

Git Introductive
Git IntroductiveGit Introductive
Git Introductive
Adham Saad
 

Tendances (20)

Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
 
Git Introductive
Git IntroductiveGit Introductive
Git Introductive
 
Learning git
Learning gitLearning git
Learning git
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
GIT | Distributed Version Control System
GIT | Distributed Version Control SystemGIT | Distributed Version Control System
GIT | Distributed Version Control System
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
 
Git basic
Git basicGit basic
Git basic
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git and GitHub workflows
Git and GitHub workflowsGit and GitHub workflows
Git and GitHub workflows
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Intro to Git and GitHub
Intro to Git and GitHubIntro to Git and GitHub
Intro to Git and GitHub
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Git real slides
Git real slidesGit real slides
Git real slides
 
Git introduction workshop for scientists
Git introduction workshop for scientists Git introduction workshop for scientists
Git introduction workshop for scientists
 
An Introduction to Git
An Introduction to GitAn Introduction to Git
An Introduction to Git
 
Github
GithubGithub
Github
 

Similaire à Git ritesh venture_pact

Similaire à Git ritesh venture_pact (20)

Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIs
 
Let's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHubLet's Git this Party Started: An Introduction to Git and GitHub
Let's Git this Party Started: An Introduction to Git and GitHub
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
The Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHubThe Basics of Open Source Collaboration With Git and GitHub
The Basics of Open Source Collaboration With Git and GitHub
 
Git hub
Git hubGit hub
Git hub
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
.Git for WordPress Developers
.Git for WordPress Developers.Git for WordPress Developers
.Git for WordPress Developers
 
Hello, Git!
Hello, Git!Hello, Git!
Hello, Git!
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Subversion to Git Migration
Subversion to Git MigrationSubversion to Git Migration
Subversion to Git Migration
 
Git 101
Git 101Git 101
Git 101
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
 
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
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Git ritesh venture_pact

  • 1. What is Git? • Source Code Management (SCM) Tool. • Version Control System (VCS) Tool. • Keeps Track Of Changes. • Versions Can Be Shared Between Multiple Users. • Open Source.
  • 2. How Git Works? • Takes Snapshot Of The Changes Done. • Each Change Updated Is Stored As Snapshot. • Can Retrieve The Snapshot Created Previously. • Multiple Persons Can Work And Update Files In The Same Repository At The Same Time.
  • 3. Key Terms Before Installation • Repository • Branch • Branch Header • Branch Merging • Push and Pull
  • 4. How To Install And Configure Git • Go To http://git-scm.com/download For Command Based Git. • Go To http://git-scm.com/downloads/guis for GUI Based Git Control. • After installation, Set The PATH Environment variable to C:Program Files (x86)Gitbin
  • 5. Create Repository On Git • Go to https://github.com/ and Signup • A Repository is a virtual name which keeps your project and changes made to the files. Create a new Repository by clicking on “New repository” button on the home page after signup up or logging in. • Check the option ” Initialize this repository with a README”
  • 6. Repository Operations • The default branch name for the Repository is “master” branch. • Create a directory with name “gittest”. You can use DOS command ‘md gittest’. • To move into the directory give command ‘cd gittest’. • To create a git repository on the local server(your machine) type the command ‘git init .’ This creates a new subdirectory named .git that contains all of your necessary repository files — a Git repository skeleton.
  • 7. Repository Operations • Now get the existing project name from github.com into your local server repository. The command is ‘git clone --recursive git@github.com:riteshtandon23/gittest’ (i.e. The SSH Path) • Recursive is used so that any changes made to the branches are also added in the current local repository. Use ‘git pull’ to get all files. • Incase facing error of unauthorized access or permission denied you need to generate a new pass key ‘ssh-keygen -t rsa -C username@domain.com’
  • 8. Repository Operations • Now add some files inside your new directory created under the folder ‘gittest’. • This command would create a snapshot of the current directory structure and files. Command ‘git add .’ • This commands tells that the snapshot is ready to be committed from local to remote origin. Command ‘git commit -m "First commit”’ • Give command ‘git push origin master’. This would push the snapshot to the remote origin.
  • 9. Branches • A branch is created when we want to change some code from a stabilized version. • To create a branch, The command is ‘git branch "branchname“’ • Also create the same branch on Github website. • To list all branches, The command is ‘git branch’. • Now, Create a branch on Github.com interface. with the name ‘ritesh’.
  • 10. Branches • Now, Create a new folder in the main directory with name of the branch, this would actually map with the branch created on the origin.The command is ‘md ritesh’. • Now move into the directory having the branch name. i.e. ‘cd ritesh’ ’. and give the command ‘git clone -b ritesh --recursive SSH_PATH_Of_Repository’ • Now add some files into the local directory.
  • 11. Branches • To create a snapshot the command is ‘git add .’ • To prepare for commit give command ‘git commit –am “Branch Commit”’ • To push the updated snapshot, Give the command ‘git push origin ritesh’ • Now move into the folder inside the branch folder(ritesh), This can be done by ‘cd TestWebsite’.
  • 12. Moving On To The Previous Versions • To move on to the previous versions, We need to check the previous commits done by the user. • You can find this on the “Commits” link on the home page of the Github page. • On the Commits page there is list of commits the user has done in the past. To move on to the previous version copy the SSH code on the right side of the commit. • Give the command ‘git reset --hard SSHCode’ • Give comamnd ‘git pull’ to update local folder.