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 (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

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
 

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

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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
 
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
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Dernier (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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
 
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
 
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...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

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.