SlideShare a Scribd company logo
SET UP SSH FOR GIT ON LINUX
1
Generate your Public key using ssh-
keygen command and set your
passphrase.
2
Copy the public key from your
system and paste it to your
bitbucket account under ssh key
section.
3
Add the key and now try to clone a
repository using the mentioned
passphrase.
CLONING REPOSITORY AND PUSH
OPERATION
git branch list all the branch
git clone [ repository URL ] Clone an existing repository
git add . Puts current working files into the stage
git commit –m “comment” Commits staged changes to a local branch
git push origin master Uploads changes from all local branches to the
respective remote repositories.
GIT OPERATIONS
git checkout [branch name] - Switch to specified branch
git pull origin [branch name] - fetch the latest changes to the working directory
git checkout –b [branch name] - create a new branch and switched to that
git status - shows the status of operation
git add [./folder/file] - It will add the files to staging
git push origin [branch name] - It will push the changes to the remote repository
git clean –f - delete all changes along with untracked files.
git reset HEAD [file] - to unstage or undoing
git merge -It will merge the changes from other branch to current branch
git log -It will show the logs with commit code
git revert [commit code] - It will undo the changes
git stash - It saves your local modifications away and reverts the working
directory to match the HEAD commit.
git branch –D branch_name - for deleting a branch
WEBHOOKS
Webhooks allow you to
build or set up
integrations, such as
GitHub Apps or OAuth
Apps, which subscribe to
certain events on
GitHub.com.
Webhooks can be used to
update an external issue
tracker, trigger CI builds,
update a backup mirror, or
even deploy to your
production server.
INTERVIEW QUESTIONS
• What is GIT?
• What is a repository in GIT?
• What is the command you can use to write a commit message?
• What is the difference between GIT and SVN?
• What are the advantages of using GIT?
• What language is used in GIT?
• What is the function of 'GIT PUSH' in GIT?
• What is “Staging Area” or “Index” in GIT?
• What is GIT stash?
• What is the function of git clone?
• What is the function of ‘git config’?
• What is the purpose of branching in GIT?
• How can you bring a new feature in the main branch?
• To delete a branch what is the command that is used?
• What is the function of ‘git diff ’ in git?
• What is the function of ‘git checkout’ in git?
• What is the function of ‘git rm’?
• What is the function of ‘git stash apply’?
• What is the use of ‘git log’?
• What is ‘git add’ is used for?
• What is the function of ‘git reset’?
THANK YOU
•Q & A Session

More Related Content

PDF
Git and GitHub workflows
PPT
GIT By Sivakrishna
PPTX
Git learning
PPTX
Git presentation
PDF
Version Control System - Git
PPTX
Git tutorial
PPT
Git basic
PDF
Gitt and Git-flow
Git and GitHub workflows
GIT By Sivakrishna
Git learning
Git presentation
Version Control System - Git
Git tutorial
Git basic
Gitt and Git-flow

What's hot (20)

PPTX
Git presentation, Viktor Pyskunov
PDF
Git Version Control System
PPTX
Git basics
PPTX
Git tutorial git branches 20131206-Bryan
PPT
Github By Nyros Developer
PPTX
Using Git and BitBucket
PDF
Git flow cheatsheet
PPTX
Git, github and the hacktober fest
PPTX
Git basics to advance with diagrams
PDF
Collaborative development with Git | Workshop
PPTX
Introduction git
PPTX
Introduction to git and github
PPTX
Git overview
PDF
What the Git? - WordCamp Atlanta
PPT
Introduction to Git and Github
PPT
Git workflow libre semikov
PPTX
Introduction to git
PPTX
Git 101
PPTX
Git - Basic Crash Course
PPTX
Introduction to git & GitHub
Git presentation, Viktor Pyskunov
Git Version Control System
Git basics
Git tutorial git branches 20131206-Bryan
Github By Nyros Developer
Using Git and BitBucket
Git flow cheatsheet
Git, github and the hacktober fest
Git basics to advance with diagrams
Collaborative development with Git | Workshop
Introduction git
Introduction to git and github
Git overview
What the Git? - WordCamp Atlanta
Introduction to Git and Github
Git workflow libre semikov
Introduction to git
Git 101
Git - Basic Crash Course
Introduction to git & GitHub
Ad

Similar to Version control git day03 (20)

PPTX
Version control git day02
PPTX
Version control git day03(amarnath dada)
PPTX
Version control git day03
PDF
PPTX
Version Control System-git status,git add,git commit,git log.pptx
PPTX
Mini-training: Let’s Git It!
PPTX
Introduction to git hub
PPTX
git Technologies
PPTX
Git and GitHub PowerPoint Presentation**
PPTX
Introduction to Git and Github
DOCX
Git github
PDF
Git slides
PPTX
GIT.pptx
PDF
01 git interview questions & answers
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
PPTX
PPTX
Introduction into Git
PDF
Git Commands Every Developer Should Know?
PPTX
Version controll.pptx
Version control git day02
Version control git day03(amarnath dada)
Version control git day03
Version Control System-git status,git add,git commit,git log.pptx
Mini-training: Let’s Git It!
Introduction to git hub
git Technologies
Git and GitHub PowerPoint Presentation**
Introduction to Git and Github
Git github
Git slides
GIT.pptx
01 git interview questions & answers
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Introduction into Git
Git Commands Every Developer Should Know?
Version controll.pptx
Ad

More from Gourav Varma (20)

PPTX
Jenkins introduction
PPTX
Docker introduction (1)
PPTX
Aws day 4
PPTX
Aws day 3
PPTX
Aws day 2
PPTX
Ansible day 4
PPTX
Ansible day 3
PPTX
Adnible day 2.ppt
PPTX
Ansible day 1.ppt
PPTX
Version control git day02
PPTX
Version control git day01
PPTX
Dev ops
PPTX
Shell programming 2
PPTX
Introduction to linux
PPTX
Final terraform
PPTX
Version control git day01
PPT
Docker swarm
PPTX
Docker advance topic (2)
PPTX
Docker introduction (1)
PPTX
Docker introduction (1)
Jenkins introduction
Docker introduction (1)
Aws day 4
Aws day 3
Aws day 2
Ansible day 4
Ansible day 3
Adnible day 2.ppt
Ansible day 1.ppt
Version control git day02
Version control git day01
Dev ops
Shell programming 2
Introduction to linux
Final terraform
Version control git day01
Docker swarm
Docker advance topic (2)
Docker introduction (1)
Docker introduction (1)

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PDF
composite construction of structures.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Digital Logic Computer Design lecture notes
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Construction Project Organization Group 2.pptx
composite construction of structures.pdf
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
Foundation to blockchain - A guide to Blockchain Tech
Lecture Notes Electrical Wiring System Components
Digital Logic Computer Design lecture notes
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Version control git day03

  • 1. SET UP SSH FOR GIT ON LINUX 1 Generate your Public key using ssh- keygen command and set your passphrase. 2 Copy the public key from your system and paste it to your bitbucket account under ssh key section. 3 Add the key and now try to clone a repository using the mentioned passphrase.
  • 2. CLONING REPOSITORY AND PUSH OPERATION git branch list all the branch git clone [ repository URL ] Clone an existing repository git add . Puts current working files into the stage git commit –m “comment” Commits staged changes to a local branch git push origin master Uploads changes from all local branches to the respective remote repositories.
  • 3. GIT OPERATIONS git checkout [branch name] - Switch to specified branch git pull origin [branch name] - fetch the latest changes to the working directory git checkout –b [branch name] - create a new branch and switched to that git status - shows the status of operation git add [./folder/file] - It will add the files to staging git push origin [branch name] - It will push the changes to the remote repository git clean –f - delete all changes along with untracked files. git reset HEAD [file] - to unstage or undoing
  • 4. git merge -It will merge the changes from other branch to current branch git log -It will show the logs with commit code git revert [commit code] - It will undo the changes git stash - It saves your local modifications away and reverts the working directory to match the HEAD commit. git branch –D branch_name - for deleting a branch
  • 5. WEBHOOKS Webhooks allow you to build or set up integrations, such as GitHub Apps or OAuth Apps, which subscribe to certain events on GitHub.com. Webhooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server.
  • 6. INTERVIEW QUESTIONS • What is GIT? • What is a repository in GIT? • What is the command you can use to write a commit message? • What is the difference between GIT and SVN? • What are the advantages of using GIT? • What language is used in GIT? • What is the function of 'GIT PUSH' in GIT? • What is “Staging Area” or “Index” in GIT?
  • 7. • What is GIT stash? • What is the function of git clone? • What is the function of ‘git config’? • What is the purpose of branching in GIT? • How can you bring a new feature in the main branch? • To delete a branch what is the command that is used? • What is the function of ‘git diff ’ in git? • What is the function of ‘git checkout’ in git? • What is the function of ‘git rm’? • What is the function of ‘git stash apply’? • What is the use of ‘git log’? • What is ‘git add’ is used for? • What is the function of ‘git reset’?
  • 8. THANK YOU •Q & A Session