SlideShare a Scribd company logo
1 of 20
Version Control, You Git
Speaker:
Mr Mayur S Patil, Asst Prof, MITAOE.
Mr Sarup Banskota
Plan of Talk
● Birth of Git
● Why the hell should I use Git?
● Initialize the Git
● Got DNA, make clone
● Push Pull to Boss i.e. Github
● Experimenting with Branch
● Conclusions
● Assignments on Public Demand
Must Prerequisite
Come with two things:
On Ubuntu:
# apt-get install git
On CentOS/Fedora/Arch:
# yum install git
Account on github.com
Birth of Git
● Father of Git: Linus Torvalds
● Tired of Bitkeeper
● Features he wanted:
○ Take Concurrent Versions System (CVS) as an
example of what not to do; if in doubt, make the
exact opposite decision
○ Support a distributed.
○ Very strong safeguards against corruption, either
accidental or malicious
Why the hell should I use Git?
● Working on One PC
● Working on Two PC’s
● Working on Server Machine
● Still fail…..?
So, why not use Git?
Initialize the Git
To start bike we require Fuel
Similarly to get started with Git, we have to
initialize it.
$ git init
Got DNA, make clone
As Human DNA makes clone of itself, so the Git
$ git clone https://github.com/ramlaxman/Fudcondemo.git
Add to Commit
When make change in file always check these
commands:
$ git status -s
$ git add ram.txt
$ git commit -m “File Created”
Folder addition to Repo
$ mkdir samp-fold
$ cd samp-fold
Need one file for submission
$ touch ram.txt
$ cd ..
$ git add samp-fold/
$ git commit -m “folder created”
Push Pull to Boss i.e. Github
Now ready to send your work.
● git push origin master
If it fails meaning “Kuchh to gadabad hai”, for that Pata
Karo ki :
● SSH hain?
● Internet shuru hai?
like these type of issues.
SSH Procedure:
Just follow this awesome help link:
https://help.github.com/articles/generating-ssh-
keys/
Want to Bypass SSH?
Try this:
$ git push git@github.com:username/repo.git
for ex,
$ git push git@github.com:ramlaxman/Fudcondemo.git
Experimenting with Branch
Make a copy and work on it.
Like, Xerox of Important Paper.
In same manner, create duplicate of existing repository, you
have to create branch of it
$ git checkout -b new_branch
To switch
$ touch a2.txt
$ vi a2.txt
$ git add a2.txt
$ git commit -m “a2.txt created”
$ git push origin master
Now go to web browser, checkout master branch you will
also find branch “new_branch”
Switch back to master
$ git checkout master
and delete the branch again
$ git branch -d new_branch
A branch is not available to others unless you push the
branch to your remote repository
$ git push origin master
So for new branch, to complete changes in Updated on Git
Repo:
$ git checkout -b new_branch
$ touch a2.txt
$ vi a2.txt
$ git add a2.txt
$ git commit -m “a2.txt created”
$ git push origin new_branch
Now, real part starts:
$ vi a2.txt // change some text in a2.txt
$ git status // to know status of updation and files to be send
$ git add a2.txt
$ git commit -m “modified”
$ git status
$ git pull origin new_branch
$ git push origin new_branch
And you will see your file has been updated on the Git. Hurray!!
Conclusion
● Hope Basics are clear.
● You can push changes to your own repo.
● If any problem like serious buggy code has
push, so how to revert…...will be in set of
curiosity.

More Related Content

What's hot

Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentationMack Hardy
 
Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010alanburke
 
Gitflow. A successful Git branching model.
Gitflow. A successful Git branching model.Gitflow. A successful Git branching model.
Gitflow. A successful Git branching model.documarezc
 
Git & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbourneGit & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbournePaal Ringstad
 
Groovy and-hudson2
Groovy and-hudson2Groovy and-hudson2
Groovy and-hudson2Kiyotaka Oku
 
Adding Source Control to Your Life
Adding Source Control to Your LifeAdding Source Control to Your Life
Adding Source Control to Your LifeMark Kelnar
 
Helios in Action: Git at Eclipse
Helios in Action: Git at EclipseHelios in Action: Git at Eclipse
Helios in Action: Git at EclipseChris Aniszczyk
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github Max Claus Nunes
 
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"South Tyrol Free Software Conference
 
node.js app deploy to heroku PaaS
node.js app deploy to heroku PaaSnode.js app deploy to heroku PaaS
node.js app deploy to heroku PaaSCaesar Chi
 
Deploying Joomla sites with GIT
Deploying Joomla sites with GITDeploying Joomla sites with GIT
Deploying Joomla sites with GITAshwin Date
 
Running jenkins in a public cloud - common issues and some solutions
Running jenkins in a public cloud - common issues and some solutionsRunning jenkins in a public cloud - common issues and some solutions
Running jenkins in a public cloud - common issues and some solutionsAndrey Devyatkin
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with GitLuigi De Russis
 
Artem Denysov "Easy ways to speed up your web application"
Artem Denysov "Easy ways to speed up your web application"Artem Denysov "Easy ways to speed up your web application"
Artem Denysov "Easy ways to speed up your web application"OdessaJS Conf
 
Collab - A dja
Collab - A djaCollab - A dja
Collab - A djadlapiduz
 

What's hot (18)

Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
 
Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010Git - Drupalcamp Ireland Dublin 2010
Git - Drupalcamp Ireland Dublin 2010
 
Gitflow. A successful Git branching model.
Gitflow. A successful Git branching model.Gitflow. A successful Git branching model.
Gitflow. A successful Git branching model.
 
Git Tricks
Git TricksGit Tricks
Git Tricks
 
Git & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon MelbourneGit & Github Workshop - Le Wagon Melbourne
Git & Github Workshop - Le Wagon Melbourne
 
Groovy and-hudson2
Groovy and-hudson2Groovy and-hudson2
Groovy and-hudson2
 
Adding Source Control to Your Life
Adding Source Control to Your LifeAdding Source Control to Your Life
Adding Source Control to Your Life
 
Helios in Action: Git at Eclipse
Helios in Action: Git at EclipseHelios in Action: Git at Eclipse
Helios in Action: Git at Eclipse
 
Git in Eclipse
Git in EclipseGit in Eclipse
Git in Eclipse
 
Git training with Devaamo
Git training with DevaamoGit training with Devaamo
Git training with Devaamo
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
SFScon17 - Daniele Gobbetti: "Free software projects on GitHub and DMCA"
 
node.js app deploy to heroku PaaS
node.js app deploy to heroku PaaSnode.js app deploy to heroku PaaS
node.js app deploy to heroku PaaS
 
Deploying Joomla sites with GIT
Deploying Joomla sites with GITDeploying Joomla sites with GIT
Deploying Joomla sites with GIT
 
Running jenkins in a public cloud - common issues and some solutions
Running jenkins in a public cloud - common issues and some solutionsRunning jenkins in a public cloud - common issues and some solutions
Running jenkins in a public cloud - common issues and some solutions
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with Git
 
Artem Denysov "Easy ways to speed up your web application"
Artem Denysov "Easy ways to speed up your web application"Artem Denysov "Easy ways to speed up your web application"
Artem Denysov "Easy ways to speed up your web application"
 
Collab - A dja
Collab - A djaCollab - A dja
Collab - A dja
 

Similar to Version control, you git

Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git聖文 鄭
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How tolanhuonga3
 
git fail --force (make it up with your pull requests)
git fail --force (make it up with your pull requests)git fail --force (make it up with your pull requests)
git fail --force (make it up with your pull requests)Carlos Duarte do Nascimento
 
Git - Simplified For Testers
Git - Simplified For TestersGit - Simplified For Testers
Git - Simplified For Testersupadhyay_25
 
Git with the flow
Git with the flowGit with the flow
Git with the flowDana White
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfBruceLee275640
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfmurad khan
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for ArtistsDavid Newbury
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and githubAderemi Dadepo
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get GitSusan Tan
 
Git 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanGit 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanJames Ford
 
Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger
 
Git Things Done
Git Things DoneGit Things Done
Git Things DoneFITC
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with GitRick Umali
 

Similar to Version control, you git (20)

Brief tutorial on Git
Brief tutorial on GitBrief tutorial on Git
Brief tutorial on Git
 
Git: Why And How to
Git: Why And How toGit: Why And How to
Git: Why And How to
 
Git and Github workshop
Git and Github workshopGit and Github workshop
Git and Github workshop
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
 
git fail --force (make it up with your pull requests)
git fail --force (make it up with your pull requests)git fail --force (make it up with your pull requests)
git fail --force (make it up with your pull requests)
 
Git - Simplified For Testers
Git - Simplified For TestersGit - Simplified For Testers
Git - Simplified For Testers
 
Github
GithubGithub
Github
 
Git step by step
Git step by stepGit step by step
Git step by step
 
Git presentation
Git presentationGit presentation
Git presentation
 
Git with the flow
Git with the flowGit with the flow
Git with the flow
 
introductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdfintroductiontogitandgithub-120702044048-phpapp01.pdf
introductiontogitandgithub-120702044048-phpapp01.pdf
 
git-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdfgit-commands-cheat-sheet-infopediya-com.pdf
git-commands-cheat-sheet-infopediya-com.pdf
 
Introduction to Git for Artists
Introduction to Git for ArtistsIntroduction to Git for Artists
Introduction to Git for Artists
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
 
How to Really Get Git
How to Really Get GitHow to Really Get Git
How to Really Get Git
 
Git 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawanGit 101: Force-sensitive to Jedi padawan
Git 101: Force-sensitive to Jedi padawan
 
Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010Matt Gauger - Git & Github web414 December 2010
Matt Gauger - Git & Github web414 December 2010
 
Git Things Done
Git Things DoneGit Things Done
Git Things Done
 
Getting Started with Git
Getting Started with GitGetting Started with Git
Getting Started with Git
 
Git & GitHub WorkShop
Git & GitHub WorkShopGit & GitHub WorkShop
Git & GitHub WorkShop
 

Recently uploaded

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 

Version control, you git

  • 1. Version Control, You Git Speaker: Mr Mayur S Patil, Asst Prof, MITAOE. Mr Sarup Banskota
  • 2. Plan of Talk ● Birth of Git ● Why the hell should I use Git? ● Initialize the Git ● Got DNA, make clone ● Push Pull to Boss i.e. Github ● Experimenting with Branch ● Conclusions ● Assignments on Public Demand
  • 3. Must Prerequisite Come with two things: On Ubuntu: # apt-get install git On CentOS/Fedora/Arch: # yum install git Account on github.com
  • 4. Birth of Git ● Father of Git: Linus Torvalds ● Tired of Bitkeeper ● Features he wanted: ○ Take Concurrent Versions System (CVS) as an example of what not to do; if in doubt, make the exact opposite decision ○ Support a distributed. ○ Very strong safeguards against corruption, either accidental or malicious
  • 5. Why the hell should I use Git? ● Working on One PC ● Working on Two PC’s ● Working on Server Machine ● Still fail…..? So, why not use Git?
  • 6. Initialize the Git To start bike we require Fuel Similarly to get started with Git, we have to initialize it. $ git init
  • 7. Got DNA, make clone As Human DNA makes clone of itself, so the Git $ git clone https://github.com/ramlaxman/Fudcondemo.git
  • 9. When make change in file always check these commands: $ git status -s $ git add ram.txt $ git commit -m “File Created”
  • 10. Folder addition to Repo $ mkdir samp-fold $ cd samp-fold Need one file for submission $ touch ram.txt $ cd .. $ git add samp-fold/ $ git commit -m “folder created”
  • 11. Push Pull to Boss i.e. Github Now ready to send your work. ● git push origin master If it fails meaning “Kuchh to gadabad hai”, for that Pata Karo ki : ● SSH hain? ● Internet shuru hai? like these type of issues.
  • 12. SSH Procedure: Just follow this awesome help link: https://help.github.com/articles/generating-ssh- keys/
  • 13. Want to Bypass SSH? Try this: $ git push git@github.com:username/repo.git for ex, $ git push git@github.com:ramlaxman/Fudcondemo.git
  • 14. Experimenting with Branch Make a copy and work on it. Like, Xerox of Important Paper. In same manner, create duplicate of existing repository, you have to create branch of it $ git checkout -b new_branch
  • 15. To switch $ touch a2.txt $ vi a2.txt $ git add a2.txt $ git commit -m “a2.txt created” $ git push origin master
  • 16. Now go to web browser, checkout master branch you will also find branch “new_branch” Switch back to master $ git checkout master and delete the branch again $ git branch -d new_branch
  • 17. A branch is not available to others unless you push the branch to your remote repository $ git push origin master
  • 18. So for new branch, to complete changes in Updated on Git Repo: $ git checkout -b new_branch $ touch a2.txt $ vi a2.txt $ git add a2.txt $ git commit -m “a2.txt created” $ git push origin new_branch
  • 19. Now, real part starts: $ vi a2.txt // change some text in a2.txt $ git status // to know status of updation and files to be send $ git add a2.txt $ git commit -m “modified” $ git status $ git pull origin new_branch $ git push origin new_branch And you will see your file has been updated on the Git. Hurray!!
  • 20. Conclusion ● Hope Basics are clear. ● You can push changes to your own repo. ● If any problem like serious buggy code has push, so how to revert…...will be in set of curiosity.

Editor's Notes

  1. While we are talking about Git and its birth, meanwhile all participants please those who installed git yet; please install for Debian based: (Debian, Ubuntu) # sudo apt-get install git RPM based (Red Hat, Fedora, CentOS, Archlinux) # sudo yum install git