SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (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
 

Similar a Git ritesh venture_pact

Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configurationKishor Kumar
 
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 GitGeoff Hoffman
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
Git for folk who like GUIs
Git for folk who like GUIsGit for folk who like GUIs
Git for folk who like GUIsTim Osborn
 
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 GitHubKim Moir
 
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 1Omar Fathy
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github Max Claus Nunes
 
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 GitHubBigBlueHat
 
.Git for WordPress Developers
.Git for WordPress Developers.Git for WordPress Developers
.Git for WordPress Developersmpvanwinkle
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
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 GITPouriaQashqai1
 

Similar a 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
 

Último

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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 Scriptwesley chun
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 

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.