SlideShare a Scribd company logo
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

PPTX
Git lord | A brief intro about git commands in Star Wars theme
PPTX
Hello git - a soft introduction to git (Talk Slides)
PDF
GitHubをエンジニア以外にも使ってもらうには
PDF
Adobe User Group Belgium: Version control and deployment strategy
PDF
Advanced Git
KEY
WebデザイナーのためのGit勉強会 ~準備編~
PPTX
Continous integration with github actions by Peter Grainger
PPTX
Why Aren't You Using Git Flow?
Git lord | A brief intro about git commands in Star Wars theme
Hello git - a soft introduction to git (Talk Slides)
GitHubをエンジニア以外にも使ってもらうには
Adobe User Group Belgium: Version control and deployment strategy
Advanced Git
WebデザイナーのためのGit勉強会 ~準備編~
Continous integration with github actions by Peter Grainger
Why Aren't You Using Git Flow?

What's hot (18)

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

Similar to Version control, you git (20)

PDF
Brief tutorial on Git
PPTX
Git: Why And How to
PDF
Git and Github workshop
PDF
Git best practices workshop
PDF
git fail --force (make it up with your pull requests)
PPTX
Git - Simplified For Testers
PPTX
Git-guidance for beginner- IT support.pptx.pptx
PPTX
Git-guidance for beginner- IT support.pptx
PDF
PPTX
Git step by step
ODP
Git presentation
PDF
Git with the flow
PDF
introductiontogitandgithub-120702044048-phpapp01.pdf
PDF
git-commands-cheat-sheet-infopediya-com.pdf
PDF
Introduction to Git for Artists
PPTX
Introduction to git and github
PDF
How to Really Get Git
PDF
Git 101: Force-sensitive to Jedi padawan
KEY
Matt Gauger - Git & Github web414 December 2010
PDF
Git Things Done
Brief tutorial on Git
Git: Why And How to
Git and Github workshop
Git best practices workshop
git fail --force (make it up with your pull requests)
Git - Simplified For Testers
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx
Git step by step
Git presentation
Git with the flow
introductiontogitandgithub-120702044048-phpapp01.pdf
git-commands-cheat-sheet-infopediya-com.pdf
Introduction to Git for Artists
Introduction to git and github
How to Really Get Git
Git 101: Force-sensitive to Jedi padawan
Matt Gauger - Git & Github web414 December 2010
Git Things Done
Ad

Recently uploaded (20)

PDF
Well-logging-methods_new................
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
DOCX
573137875-Attendance-Management-System-original
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Well-logging-methods_new................
Foundation to blockchain - A guide to Blockchain Tech
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
573137875-Attendance-Management-System-original
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Mechanical Engineering MATERIALS Selection
Fundamentals of safety and accident prevention -final (1).pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Internet of Things (IOT) - A guide to understanding
UNIT 4 Total Quality Management .pptx
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
UNIT-1 - COAL BASED THERMAL POWER PLANTS

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 [email protected]:username/repo.git for ex, $ git push [email protected]: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

  • #3: 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