SlideShare uma empresa Scribd logo
Git and Github
• Git is a version control system, it helps us to track
the changes made in our code/projects.
• Git is the most popular version control system in the
software development field.
• It is free and open source software.
• It is fast and can be used in large projects.
What is ?
• If you are working in a team, Git is best for you. It supports multiple
programmers working simultaneously.
• Github is a website used to host your code, and
manage the code with the help of Git.
• On gihub code is stored in folder like structure, that
is known as repository or repo.
What is ?
1) Create account on github.
2) Create repository
Download Git software
• Local projects and remote projects
• Clone repo to host the code.
• Git clone and the url
• Git clone https://github.com/abdul-salam111/GitandGithub_Session_repo.git
• Git status -> to check the changes
• Create a new local file.
• Untracked files
Git commands
• Git add file name.
• Git add . ( to add all files)
• Staging Area
• The staging area is a file, generally contained in your Git directory, that stores information
about what will go into your next commit.
• Git commit (git commit –m “message”
• git commit creates a commit, which is like a snapshot of your repository.
These commits are snapshots of your entire repository at specific times.
Git commands
• Git push (git push origin main)
• Upload the local changes to github repository.
• Uploading new project to the github
• git init
• git add README.md
• git commit -m "first commit"
• git branch -M main
• git remote add origin https://github.com/abdul-salam111/new-repo.git
• git push -u origin main
Git commands
• Switching between branches
• Git checkout main ( branch name)
• Pushing branches to the github
• Git push origin feature1 -> branch name
Git commands
• Comparing branches
• Git diff main –>branch name >>> first we have to commit somehting
• Merging branches
• Git merge feature2 ->branch name
• Deleting branches
• Git branch –d feature2 ->branch name
• If some conflicts in merging use this command
• git push -f -u origin (branch name)
Thank you
Follow me on LinkedIn for more updates and sessions
https://www.linkedin.com/in/abdulsalamas/

Mais conteúdo relacionado

Semelhante a Introduction to git and githhub with practicals.pptx

Source Code Management with Git
Source Code Management with GitSource Code Management with Git
Source Code Management with Git
Things Lab
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 

Semelhante a Introduction to git and githhub with practicals.pptx (20)

Introduction to git
Introduction to gitIntroduction to git
Introduction to git
 
Learn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levelsLearn Git - For Beginners and Intermediate levels
Learn Git - For Beginners and Intermediate levels
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
Techoalien git
Techoalien gitTechoalien git
Techoalien git
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
The Fundamentals of Git
The Fundamentals of GitThe Fundamentals of Git
The Fundamentals of Git
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
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
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
 
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...Git workshop - University of Moratuwa, Department of Computer Science and Eng...
Git workshop - University of Moratuwa, Department of Computer Science and Eng...
 
Source Code Management with Git
Source Code Management with GitSource Code Management with Git
Source Code Management with Git
 
Git training v10
Git training v10Git training v10
Git training v10
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
 
Learning git
Learning gitLearning git
Learning git
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
11 git version control
11 git version control11 git version control
11 git version control
 

Último

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Último (20)

PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 

Introduction to git and githhub with practicals.pptx

  • 2. • Git is a version control system, it helps us to track the changes made in our code/projects. • Git is the most popular version control system in the software development field. • It is free and open source software. • It is fast and can be used in large projects. What is ?
  • 3. • If you are working in a team, Git is best for you. It supports multiple programmers working simultaneously.
  • 4. • Github is a website used to host your code, and manage the code with the help of Git. • On gihub code is stored in folder like structure, that is known as repository or repo. What is ?
  • 5. 1) Create account on github. 2) Create repository
  • 6. Download Git software • Local projects and remote projects • Clone repo to host the code. • Git clone and the url • Git clone https://github.com/abdul-salam111/GitandGithub_Session_repo.git • Git status -> to check the changes • Create a new local file. • Untracked files
  • 7. Git commands • Git add file name. • Git add . ( to add all files) • Staging Area • The staging area is a file, generally contained in your Git directory, that stores information about what will go into your next commit. • Git commit (git commit –m “message” • git commit creates a commit, which is like a snapshot of your repository. These commits are snapshots of your entire repository at specific times.
  • 8. Git commands • Git push (git push origin main) • Upload the local changes to github repository. • Uploading new project to the github • git init • git add README.md • git commit -m "first commit" • git branch -M main • git remote add origin https://github.com/abdul-salam111/new-repo.git • git push -u origin main
  • 9. Git commands • Switching between branches • Git checkout main ( branch name) • Pushing branches to the github • Git push origin feature1 -> branch name
  • 10. Git commands • Comparing branches • Git diff main –>branch name >>> first we have to commit somehting • Merging branches • Git merge feature2 ->branch name • Deleting branches • Git branch –d feature2 ->branch name • If some conflicts in merging use this command • git push -f -u origin (branch name)
  • 11. Thank you Follow me on LinkedIn for more updates and sessions https://www.linkedin.com/in/abdulsalamas/