SlideShare a Scribd company logo
Git & Github
04-02-2017
Log Everything!
You can always come back to your desired state.
How to log:
● Using copy to take backups.
● Use source control systems(Git, SVN, Mercurial).
Why we need SCM?
Work as a team.
Develop parallely:
● SCM looks after conflicts.
● SCM looks after sharing code.
● SCM tracks every developer code.
History of Git and Github
Git:
● Linus Torvalds
● May 11, 2012
Github:
● Tom Preston-Werner
● March 2014
Git Basics
To track files, Git takes snapshots(commits) of files. So commit frequently.
How to commit:
● Initialize git
○ git init
● Add required files(option all adds everything in that directory)
○ git add --all
● Finally Commit
○ git commit -m ‘Initial state of my files’
Git Basics
To see what you have done, run:
● git log
● git reflog # reflog stores complete history not just commits.
Goto to previous state(commit) of your code:
● git checkout commit_id
Git Basics
Git Status: Displays files that you have changed but did not commit.
Branches:
● Branches are commits with names.
● By Default git creates ‘master’ branch on first commit.
● git branch # lists all branches
● git branch branch_name # creates branch, you got a name for commit.
● git checkout branch_name # same as going to your desired commit
Github
Github is a hosting service, hosting code makes it easy to work with multiple
people.
Github implements many features like showing your commit history, statistics,
code comparison etc..
Github provides free hosting for publicly available projects.
Github basics
● Log into github.com
● Create a repository
● Copy the url of your repository
● In your git initialized directory, run:
○ git remote add origin url_here
● Push your code to github.com, run:
○ git push origin my_branch_name
Github Basics
● To pull code from github.
○ git pull origin branch_name
● Merging is applying changes from different people.
Merge Conflicts:
● Multiple people working on same file will generate merge conflicts.
● Git displays what caused merge conflicts.
Undo Changes
If you want to undo changes until a particular commit, run:
git reset commit_id
Or
git reset HEAD~1
Here 1 represents no. of commits to get back.
GitHub Alternatives:
● Bit Bucket
● GitLab
MicroPyramid
● Micropyramid.com
● Blog: micropyramid.com/blog
● Forum: micropyramid.com/forum/
● GitHub: https://github.com/MicroPyramid/
● Facebook: https://www.facebook.com/MicroPyramid/
● Twitter: https://twitter.com/MicroPyramid

More Related Content

What's hot

Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
Himanshu Agrawal
 
Git locally - part 1
Git locally - part 1Git locally - part 1
Git locally - part 1
ahmadezzeir
 
Git locally git rm/revert/reset
Git locally git rm/revert/resetGit locally git rm/revert/reset
Git locally git rm/revert/reset
ahmadezzeir
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
Himanshu Agrawal
 
Version control
Version controlVersion control
Version control
Giovanni Marco Dall'Olio
 
Git commands
Git commandsGit commands
Git commands
Viyaan Jhiingade
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
responseteam
 
Git tech talk
Git tech talkGit tech talk
Git tech talk
razasayed
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to Git
Daniel Tai
 
Git presentation
Git presentationGit presentation
Git presentation
Edson Celio
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)
Borek Bernard
 
Git & Github
Git & GithubGit & Github
Git & Github
Aman Lalpuria
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
瑋琮 林
 
Git presentation
Git presentationGit presentation
Git presentation
Vikas Yaligar
 
Git step by step
Git step by stepGit step by step
Git step by step
Mithun Ghose
 
Getting Started on distributed version control with git
Getting Started on distributed version control with gitGetting Started on distributed version control with git
Getting Started on distributed version control with git
Anoop Thomas Mathew
 
Web Programming - Git basics
Web Programming - Git basicsWeb Programming - Git basics
Web Programming - Git basics
Ömer Taşkın
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
heyMP
 
Open source
Open sourceOpen source
Open source
onaelmangabo
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
gdgjss
 

What's hot (20)

Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
Git locally - part 1
Git locally - part 1Git locally - part 1
Git locally - part 1
 
Git locally git rm/revert/reset
Git locally git rm/revert/resetGit locally git rm/revert/reset
Git locally git rm/revert/reset
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 
Version control
Version controlVersion control
Version control
 
Git commands
Git commandsGit commands
Git commands
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
 
Git tech talk
Git tech talkGit tech talk
Git tech talk
 
A Simple Introduction to Git
A Simple Introduction to GitA Simple Introduction to Git
A Simple Introduction to Git
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)Git in 10 minutes (WordCamp London 2018)
Git in 10 minutes (WordCamp London 2018)
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git step by step
Git step by stepGit step by step
Git step by step
 
Getting Started on distributed version control with git
Getting Started on distributed version control with gitGetting Started on distributed version control with git
Getting Started on distributed version control with git
 
Web Programming - Git basics
Web Programming - Git basicsWeb Programming - Git basics
Web Programming - Git basics
 
Git Going w/ Git
Git Going w/ GitGit Going w/ Git
Git Going w/ Git
 
Open source
Open sourceOpen source
Open source
 
Extra bit with git
Extra bit with gitExtra bit with git
Extra bit with git
 

Viewers also liked

Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
Rob Quick
 
Suv 7 chỗ chevrolet captiva all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
Suv 7 chỗ chevrolet captiva  all news- So sánh đánh giá Honda CRV/ Mazda CX 5...Suv 7 chỗ chevrolet captiva  all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
Suv 7 chỗ chevrolet captiva all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
Kệ Siêu Thị
 
Linea de ciencias 2016
Linea de ciencias 2016Linea de ciencias 2016
Linea de ciencias 2016
Ep Freire
 
La poetisa Safo
La poetisa SafoLa poetisa Safo
La poetisa Safo
LUCIAVALIENTE
 
Introduction to react_js
Introduction to react_jsIntroduction to react_js
Introduction to react_js
MicroPyramid .
 
React 101
React 101React 101
React 101
Casear Chu
 
발기부전치료제 종류와 효과 알아보기
발기부전치료제 종류와 효과 알아보기발기부전치료제 종류와 효과 알아보기
발기부전치료제 종류와 효과 알아보기
정 수연
 
Key lets read wildlife in india
Key lets read wildlife in indiaKey lets read wildlife in india
Key lets read wildlife in india
Mar Caston Palacio
 
Indikator pemantauan tumbang
Indikator pemantauan tumbangIndikator pemantauan tumbang
Indikator pemantauan tumbang
Asih Astuti
 
Bangladesh arts and sculpture
Bangladesh arts and sculptureBangladesh arts and sculpture
Bangladesh arts and sculpture
tanmay mondal
 
15-de-hsg-tieng-anh-lop-6
15-de-hsg-tieng-anh-lop-615-de-hsg-tieng-anh-lop-6
15-de-hsg-tieng-anh-lop-6
toantieuhociq
 
Digital economy
Digital economyDigital economy
Digital economy
Settapong_CyberSecurity
 
Wernekink commissure syndrome
Wernekink commissure syndromeWernekink commissure syndrome
Wernekink commissure syndrome
Prisma Health Upstate
 
Asuhan primer pada bayi 6 minggu pertama
Asuhan primer pada bayi 6 minggu pertama  Asuhan primer pada bayi 6 minggu pertama
Asuhan primer pada bayi 6 minggu pertama
Asih Astuti
 
Bayi baru lahir normal
Bayi baru lahir normalBayi baru lahir normal
Bayi baru lahir normal
Asih Astuti
 
Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...
Lionel Briand
 

Viewers also liked (16)

Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
Suv 7 chỗ chevrolet captiva all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
Suv 7 chỗ chevrolet captiva  all news- So sánh đánh giá Honda CRV/ Mazda CX 5...Suv 7 chỗ chevrolet captiva  all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
Suv 7 chỗ chevrolet captiva all news- So sánh đánh giá Honda CRV/ Mazda CX 5...
 
Linea de ciencias 2016
Linea de ciencias 2016Linea de ciencias 2016
Linea de ciencias 2016
 
La poetisa Safo
La poetisa SafoLa poetisa Safo
La poetisa Safo
 
Introduction to react_js
Introduction to react_jsIntroduction to react_js
Introduction to react_js
 
React 101
React 101React 101
React 101
 
발기부전치료제 종류와 효과 알아보기
발기부전치료제 종류와 효과 알아보기발기부전치료제 종류와 효과 알아보기
발기부전치료제 종류와 효과 알아보기
 
Key lets read wildlife in india
Key lets read wildlife in indiaKey lets read wildlife in india
Key lets read wildlife in india
 
Indikator pemantauan tumbang
Indikator pemantauan tumbangIndikator pemantauan tumbang
Indikator pemantauan tumbang
 
Bangladesh arts and sculpture
Bangladesh arts and sculptureBangladesh arts and sculpture
Bangladesh arts and sculpture
 
15-de-hsg-tieng-anh-lop-6
15-de-hsg-tieng-anh-lop-615-de-hsg-tieng-anh-lop-6
15-de-hsg-tieng-anh-lop-6
 
Digital economy
Digital economyDigital economy
Digital economy
 
Wernekink commissure syndrome
Wernekink commissure syndromeWernekink commissure syndrome
Wernekink commissure syndrome
 
Asuhan primer pada bayi 6 minggu pertama
Asuhan primer pada bayi 6 minggu pertama  Asuhan primer pada bayi 6 minggu pertama
Asuhan primer pada bayi 6 minggu pertama
 
Bayi baru lahir normal
Bayi baru lahir normalBayi baru lahir normal
Bayi baru lahir normal
 
Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...
 

Similar to Git & github

Git Basics
Git BasicsGit Basics
Git Basics
Ryan Condron
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
tapanvyas11
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
聖文 鄭
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
Dana White
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
Priya Nayak
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!
Cory Webb
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
Priyanka Nag
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
GDSC UofT Mississauga
 
Introduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptxIntroduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptx
Abdul Salam
 
Bitbucket and Git
Bitbucket and GitBitbucket and Git
Bitbucket and Git
Mohit Shukla
 
Git and GitHub Info Session
Git and GitHub Info SessionGit and GitHub Info Session
Git and GitHub Info Session
SawanBhattacharya
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
BruceLee275640
 
GDSC Git event 2023.pptx
GDSC Git event 2023.pptxGDSC Git event 2023.pptx
GDSC Git event 2023.pptx
fsxflyer789Productio
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
Hitesh670643
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
Sage Sharp
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
Nyros Technologies
 
16 Git
16 Git16 Git
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
Amit Mathur
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
SiddhantBhardwaj26
 

Similar to Git & github (20)

Git Basics
Git BasicsGit Basics
Git Basics
 
Setting up Git.pptx
Setting up Git.pptxSetting up Git.pptx
Setting up Git.pptx
 
Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
You're doing it wrong! Git it right!
You're doing it wrong! Git it right!You're doing it wrong! Git it right!
You're doing it wrong! Git it right!
 
Gn unify git
Gn unify gitGn unify git
Gn unify git
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
Git Init (Introduction to Git)
Git Init (Introduction to Git)Git Init (Introduction to Git)
Git Init (Introduction to Git)
 
Introduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptxIntroduction to git and githhub with practicals.pptx
Introduction to git and githhub with practicals.pptx
 
Bitbucket and Git
Bitbucket and GitBitbucket and Git
Bitbucket and Git
 
Git and GitHub Info Session
Git and GitHub Info SessionGit and GitHub Info Session
Git and GitHub Info Session
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
GDSC Git event 2023.pptx
GDSC Git event 2023.pptxGDSC Git event 2023.pptx
GDSC Git event 2023.pptx
 
Git and Github.pptx
Git and Github.pptxGit and Github.pptx
Git and Github.pptx
 
Advanced Git Tutorial
Advanced Git TutorialAdvanced Git Tutorial
Advanced Git Tutorial
 
Github By Nyros Developer
Github By Nyros DeveloperGithub By Nyros Developer
Github By Nyros Developer
 
16 Git
16 Git16 Git
16 Git
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
 

More from MicroPyramid .

Custom web application development with Django for startups and Django-CRM intro
Custom web application development with Django for startups and Django-CRM introCustom web application development with Django for startups and Django-CRM intro
Custom web application development with Django for startups and Django-CRM intro
MicroPyramid .
 
Social login integration
Social login integrationSocial login integration
Social login integration
MicroPyramid .
 
Packaging and distributing python code to Pypi
Packaging and distributing python code to PypiPackaging and distributing python code to Pypi
Packaging and distributing python code to Pypi
MicroPyramid .
 
Django elastic beanstalk
Django elastic beanstalkDjango elastic beanstalk
Django elastic beanstalk
MicroPyramid .
 
Unit Testing with Python
Unit Testing with PythonUnit Testing with Python
Unit Testing with Python
MicroPyramid .
 
Introduction to Vi
Introduction to ViIntroduction to Vi
Introduction to Vi
MicroPyramid .
 
Hands on django part 1
Hands on django part 1Hands on django part 1
Hands on django part 1
MicroPyramid .
 

More from MicroPyramid . (7)

Custom web application development with Django for startups and Django-CRM intro
Custom web application development with Django for startups and Django-CRM introCustom web application development with Django for startups and Django-CRM intro
Custom web application development with Django for startups and Django-CRM intro
 
Social login integration
Social login integrationSocial login integration
Social login integration
 
Packaging and distributing python code to Pypi
Packaging and distributing python code to PypiPackaging and distributing python code to Pypi
Packaging and distributing python code to Pypi
 
Django elastic beanstalk
Django elastic beanstalkDjango elastic beanstalk
Django elastic beanstalk
 
Unit Testing with Python
Unit Testing with PythonUnit Testing with Python
Unit Testing with Python
 
Introduction to Vi
Introduction to ViIntroduction to Vi
Introduction to Vi
 
Hands on django part 1
Hands on django part 1Hands on django part 1
Hands on django part 1
 

Recently uploaded

LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Semiosis Software Private Limited
 

Recently uploaded (20)

LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
 

Git & github

  • 2. Log Everything! You can always come back to your desired state. How to log: ● Using copy to take backups. ● Use source control systems(Git, SVN, Mercurial). Why we need SCM?
  • 3. Work as a team. Develop parallely: ● SCM looks after conflicts. ● SCM looks after sharing code. ● SCM tracks every developer code.
  • 4. History of Git and Github Git: ● Linus Torvalds ● May 11, 2012 Github: ● Tom Preston-Werner ● March 2014
  • 5. Git Basics To track files, Git takes snapshots(commits) of files. So commit frequently. How to commit: ● Initialize git ○ git init ● Add required files(option all adds everything in that directory) ○ git add --all ● Finally Commit ○ git commit -m ‘Initial state of my files’
  • 6. Git Basics To see what you have done, run: ● git log ● git reflog # reflog stores complete history not just commits. Goto to previous state(commit) of your code: ● git checkout commit_id
  • 7. Git Basics Git Status: Displays files that you have changed but did not commit. Branches: ● Branches are commits with names. ● By Default git creates ‘master’ branch on first commit. ● git branch # lists all branches ● git branch branch_name # creates branch, you got a name for commit. ● git checkout branch_name # same as going to your desired commit
  • 8. Github Github is a hosting service, hosting code makes it easy to work with multiple people. Github implements many features like showing your commit history, statistics, code comparison etc.. Github provides free hosting for publicly available projects.
  • 9. Github basics ● Log into github.com ● Create a repository ● Copy the url of your repository ● In your git initialized directory, run: ○ git remote add origin url_here ● Push your code to github.com, run: ○ git push origin my_branch_name
  • 10. Github Basics ● To pull code from github. ○ git pull origin branch_name ● Merging is applying changes from different people. Merge Conflicts: ● Multiple people working on same file will generate merge conflicts. ● Git displays what caused merge conflicts.
  • 11. Undo Changes If you want to undo changes until a particular commit, run: git reset commit_id Or git reset HEAD~1 Here 1 represents no. of commits to get back.
  • 12. GitHub Alternatives: ● Bit Bucket ● GitLab
  • 13. MicroPyramid ● Micropyramid.com ● Blog: micropyramid.com/blog ● Forum: micropyramid.com/forum/ ● GitHub: https://github.com/MicroPyramid/ ● Facebook: https://www.facebook.com/MicroPyramid/ ● Twitter: https://twitter.com/MicroPyramid