SlideShare a Scribd company logo
INTRODUCTION TO GIT
ERIC SODJA AND JUSTIN TIRRELL
LINUS TORVALDS
• Creator of linux os
• Needed to collaborate with developers across
the world at the push of the button
• Develops git!
WHAT IS GIT FOR
• Managing different versions of code/documents
• Group collaboration on coding projects
• Downloading projects
• Reverting to old versions ‘what if’ (reduces clutter)
DOWNLOAD GIT (DO THIS FIRST)
• Linux (Debian)
- Command: sudo apt-get install git
• Linux (Fedora)
- Command: sudo yum install git
• Mac
- http://git-scm.com/download/mac
• Windows
- http://git-scm.com/download/win
CREATING A GITHUB ACCOUNT
• Sign Up for Github
https://github.com/join?source=header
• Request to join our repository
https://github.com/SeedscapeEcology
TELL GITHUB WHO YOU ARE
Run these commands in git <using your email and password>
• git config --global user.email "you@example.com"
• git config --global user.name "Your Name"
COMMANDS TO NAVIGATE IN THE BASH SHELL
• cd .. - move up a directory
• cd ~ - go to your home directory
• cd “directory/directory/” – go to directory/directory/
• ls – list files and directories in the current directory
SET UP YOUR LOCAL REPOSITORY
• Go to the folder in which you’ll put your group repository
cd /desired/folder/path
• Create a local repository on your PC
git init
• Download our group repository into the folder
git clone https://github.com/SeedscapeEcology/ProjectManagement.git
IMPORTANT GIT COMMANDS
TREE MODEL
TREE MODEL
ADD, COMMIT, PUSH
• Add changes to the staging area
git add file/path/filename.txt (adds specific file)
git add –A (adds all files)
git add –u (adds updates of existing files)
• Commit changes into a new workspace image in local repository
git commit –am “<Describe the changes made>”
• Define your remote repository
git remote add origin https://github.com/SeedscapeEcology/ProjectManagement.git
• Push your changes to the remote repository
git push origin master (for pushing the master branch)
git push origin <branch> (for pushing an alternative branch)
STATUS, LOG, DIFF
• git status
shows which files are tracked/untracked in the index
• git log
shows a list of the commit history in the local repository
• git diff <branch name>
shows the differences between the current branch and the named branch
PULLING & FETCHING
• git pull
merges the remote repository into the workspace
• git fetch
merges the remote repository into the local repository
PULLING & FETCHING
PURPOSE OF BRANCHES
• Testing new ideas
• Maintaining the stability of the master branch
TYPES OF BRANCHES
• Local Branches
• On your computer
• Tracking Branches
• In the remote repository
Resource: https://longair.net/blog/2009/04/16/git-fetch-and-merge/
BRANCHES
• Creating Branches (locally)
git branch <name of branch>
• Merging Branches
git merge <name of branch> (merges named branch into current)
• Deleting Branches
git branch –d <name of branch>
MANAGING MERGE CONFLICTS
• Git manages most merges by itself. When it can’t there are a few options:
• Search through the files that have the merge conflicts for ==== <<< signs that highlight
the issues
• Git mergetool
Have the mergetool walk you through addressing the conflict
WHAT IS GITHUB
• A site that hosts the different versions of your project
• A company with a name. (Other options are available)
• Website
ALTERNATIVES TO BASH: GUI
• gitk
command that opens an in-built GUI
• Git Kraken
https://www.gitkraken.com/
• Github
https://github.com/
TABBING!
• If you can’t remember a full command, you can just press the tab button to
auto-complete the command or list potential commands for you!
FAVORITE RESOURCES
• http://rogerdudler.github.io/git-guide/
Ad

More Related Content

What's hot (20)

Git 101 for_tarad_dev
Git 101 for_tarad_devGit 101 for_tarad_dev
Git 101 for_tarad_dev
Somkiat Puisungnoen
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Git in 5 Minutes
Git in 5 MinutesGit in 5 Minutes
Git in 5 Minutes
Robert Dumas
 
Mini git tutorial
Mini git tutorialMini git tutorial
Mini git tutorial
Cristian Lucchesi
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
From svn to git
From svn to gitFrom svn to git
From svn to git
Nehal Shah
 
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
Stennie Steneker
 
Git Basics at Rails Underground
Git Basics at Rails UndergroundGit Basics at Rails Underground
Git Basics at Rails Underground
Ariejan de Vroom
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
Jim Yeh
 
Git basics
Git basicsGit basics
Git basics
Amit Sawhney
 
Git for beginners
Git for beginnersGit for beginners
Git for beginners
Arulmurugan Rajaraman
 
Demo
DemoDemo
Demo
Miracle Anyanwu
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
Nap Ramirez
 
Git for a newbie
Git for a newbieGit for a newbie
Git for a newbie
Anuj Sharma
 
Git meanings of -distributed-
Git  meanings of -distributed-Git  meanings of -distributed-
Git meanings of -distributed-
dchaffiol
 
11 git version control
11 git version control11 git version control
11 git version control
Wasim Alatrash
 
Git and fundamentals
Git and fundamentalsGit and fundamentals
Git and fundamentals
Naincy Gupta
 
Getting started with git
Getting started with gitGetting started with git
Getting started with git
Pawan Kumar.v
 
Introduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training SessionIntroduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training Session
Anwarul Islam
 
GitHub Presentation
GitHub PresentationGitHub Presentation
GitHub Presentation
BrianSchilder
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
Nilay Binjola
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
From svn to git
From svn to gitFrom svn to git
From svn to git
Nehal Shah
 
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
MongoDB World 2019 Builder's Fest - Ready, Git set ... Go!
Stennie Steneker
 
Git Basics at Rails Underground
Git Basics at Rails UndergroundGit Basics at Rails Underground
Git Basics at Rails Underground
Ariejan de Vroom
 
Git Tutorial I
Git Tutorial IGit Tutorial I
Git Tutorial I
Jim Yeh
 
Git: A Getting Started Presentation
Git: A Getting Started PresentationGit: A Getting Started Presentation
Git: A Getting Started Presentation
Nap Ramirez
 
Git for a newbie
Git for a newbieGit for a newbie
Git for a newbie
Anuj Sharma
 
Git meanings of -distributed-
Git  meanings of -distributed-Git  meanings of -distributed-
Git meanings of -distributed-
dchaffiol
 
11 git version control
11 git version control11 git version control
11 git version control
Wasim Alatrash
 
Git and fundamentals
Git and fundamentalsGit and fundamentals
Git and fundamentals
Naincy Gupta
 
Getting started with git
Getting started with gitGetting started with git
Getting started with git
Pawan Kumar.v
 
Introduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training SessionIntroduction to Gitlab | Gitlab 101 | Training Session
Introduction to Gitlab | Gitlab 101 | Training Session
Anwarul Islam
 

Similar to Fall18 Git presentation (20)

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
 
Distributed Developer Workflows using Git
Distributed Developer Workflows using GitDistributed Developer Workflows using Git
Distributed Developer Workflows using Git
Susan Potter
 
Git training v10
Git training v10Git training v10
Git training v10
Skander Hamza
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
Kishor Kumar
 
簡單介紹git
簡單介紹git簡單介紹git
簡單介紹git
Grace Chien
 
Source control management
Source control managementSource control management
Source control management
Owen Winkler
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Nguyen Van Hung
 
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
 
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
Geoff Hoffman
 
Git & gitflow
Git & gitflowGit & gitflow
Git & gitflow
Nolifelover Earn
 
Git Tech Talk
Git  Tech TalkGit  Tech Talk
Git Tech Talk
Chris Johnson
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
Roniel Lopez Alvarez
 
github ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know abgithub ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know ab
infoinnext
 
Essential git for developers
Essential git for developersEssential git for developers
Essential git for developers
Aidan Casey
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
Betclic Everest Group Tech Team
 
Introduction git
Introduction gitIntroduction git
Introduction git
Dian Sigit Prastowo
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
Soumen Debgupta
 
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx.pptxGit-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx.pptx
vietnguyen1989
 
Git-guidance for beginner- IT support.pptx
Git-guidance for beginner- IT support.pptxGit-guidance for beginner- IT support.pptx
Git-guidance for beginner- IT support.pptx
vietnguyen1989
 
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
 
Distributed Developer Workflows using Git
Distributed Developer Workflows using GitDistributed Developer Workflows using Git
Distributed Developer Workflows using Git
Susan Potter
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Git installation and configuration
Git installation and configurationGit installation and configuration
Git installation and configuration
Kishor Kumar
 
Source control management
Source control managementSource control management
Source control management
Owen Winkler
 
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
 
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
Geoff Hoffman
 
github ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know abgithub ppt git ppt on git hub to know ab
github ppt git ppt on git hub to know ab
infoinnext
 
Essential git for developers
Essential git for developersEssential git for developers
Essential git for developers
Aidan Casey
 
Git-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx.pptxGit-guidance for beginner- IT support.pptx.pptx
Git-guidance for beginner- IT support.pptx.pptx
vietnguyen1989
 
Git-guidance for beginner- IT support.pptx
Git-guidance for beginner- IT support.pptxGit-guidance for beginner- IT support.pptx
Git-guidance for beginner- IT support.pptx
vietnguyen1989
 
Ad

More from JustinTirrell1 (10)

Tirrell CV
Tirrell CVTirrell CV
Tirrell CV
JustinTirrell1
 
Fall18 theoretical-ecology proposal
Fall18 theoretical-ecology proposalFall18 theoretical-ecology proposal
Fall18 theoretical-ecology proposal
JustinTirrell1
 
Fall18 theoretical-ecology final project
Fall18 theoretical-ecology final projectFall18 theoretical-ecology final project
Fall18 theoretical-ecology final project
JustinTirrell1
 
Spring18 bio-URS
Spring18 bio-URSSpring18 bio-URS
Spring18 bio-URS
JustinTirrell1
 
Spring19 Palm Tree Proposal
Spring19 Palm Tree ProposalSpring19 Palm Tree Proposal
Spring19 Palm Tree Proposal
JustinTirrell1
 
Fall18 theoretical-ecology presentation
Fall18 theoretical-ecology presentationFall18 theoretical-ecology presentation
Fall18 theoretical-ecology presentation
JustinTirrell1
 
Fall18 SRS
Fall18 SRSFall18 SRS
Fall18 SRS
JustinTirrell1
 
Fall18 Lab Presentation
Fall18 Lab PresentationFall18 Lab Presentation
Fall18 Lab Presentation
JustinTirrell1
 
Spring19 SRS
Spring19 SRSSpring19 SRS
Spring19 SRS
JustinTirrell1
 
Fall17 bio-urs
Fall17 bio-ursFall17 bio-urs
Fall17 bio-urs
JustinTirrell1
 
Fall18 theoretical-ecology proposal
Fall18 theoretical-ecology proposalFall18 theoretical-ecology proposal
Fall18 theoretical-ecology proposal
JustinTirrell1
 
Fall18 theoretical-ecology final project
Fall18 theoretical-ecology final projectFall18 theoretical-ecology final project
Fall18 theoretical-ecology final project
JustinTirrell1
 
Spring19 Palm Tree Proposal
Spring19 Palm Tree ProposalSpring19 Palm Tree Proposal
Spring19 Palm Tree Proposal
JustinTirrell1
 
Fall18 theoretical-ecology presentation
Fall18 theoretical-ecology presentationFall18 theoretical-ecology presentation
Fall18 theoretical-ecology presentation
JustinTirrell1
 
Fall18 Lab Presentation
Fall18 Lab PresentationFall18 Lab Presentation
Fall18 Lab Presentation
JustinTirrell1
 
Ad

Recently uploaded (20)

Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 
Lecture 12 Types of farming system
Lecture 12       Types of farming systemLecture 12       Types of farming system
Lecture 12 Types of farming system
Nickala1
 
Multydisciplinary Nature of Environmental Studies
Multydisciplinary Nature of Environmental StudiesMultydisciplinary Nature of Environmental Studies
Multydisciplinary Nature of Environmental Studies
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
amino compounds.pptx class 12_Govinda Pathak
amino compounds.pptx class 12_Govinda Pathakamino compounds.pptx class 12_Govinda Pathak
amino compounds.pptx class 12_Govinda Pathak
GovindaPathak6
 
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptxPreparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Dr Showkat Ahmad Wani
 
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Ali Raei
 
Nutritional Diseases in poultry.........
Nutritional Diseases in poultry.........Nutritional Diseases in poultry.........
Nutritional Diseases in poultry.........
Bangladesh Agricultural University,Mymemsingh
 
RAPID DIAGNOSTIC TEST (RDT) overviewppt.pptx
RAPID DIAGNOSTIC TEST (RDT)  overviewppt.pptxRAPID DIAGNOSTIC TEST (RDT)  overviewppt.pptx
RAPID DIAGNOSTIC TEST (RDT) overviewppt.pptx
nietakam
 
Metallurgical process class 11_Govinda Pathak
Metallurgical process class 11_Govinda PathakMetallurgical process class 11_Govinda Pathak
Metallurgical process class 11_Govinda Pathak
GovindaPathak6
 
On the Lunar Origin of Near-Earth Asteroid 2024 PT5
On the Lunar Origin of Near-Earth Asteroid 2024 PT5On the Lunar Origin of Near-Earth Asteroid 2024 PT5
On the Lunar Origin of Near-Earth Asteroid 2024 PT5
Sérgio Sacani
 
when is CT scan need in breast cancer patient.pptx
when is CT scan need in breast cancer patient.pptxwhen is CT scan need in breast cancer patient.pptx
when is CT scan need in breast cancer patient.pptx
Rukhnuddin Al-daudar
 
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
muralinath2
 
Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...
Sérgio Sacani
 
Zoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptxZoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptx
Dr Showkat Ahmad Wani
 
Lipids: Classification, Functions, Metabolism, and Dietary Recommendations
Lipids: Classification, Functions, Metabolism, and Dietary RecommendationsLipids: Classification, Functions, Metabolism, and Dietary Recommendations
Lipids: Classification, Functions, Metabolism, and Dietary Recommendations
Sarumathi Murugesan
 
Chromatography, types, techniques, ppt.pptx
Chromatography, types, techniques, ppt.pptxChromatography, types, techniques, ppt.pptx
Chromatography, types, techniques, ppt.pptx
Dr Showkat Ahmad Wani
 
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
home
 
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdfBotany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
JseleBurgos
 
Skin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _ControlSkin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _Control
muralinath2
 
Gel Electrophorosis, A Practical Lecture.pptx
Gel Electrophorosis, A Practical Lecture.pptxGel Electrophorosis, A Practical Lecture.pptx
Gel Electrophorosis, A Practical Lecture.pptx
Dr Showkat Ahmad Wani
 
Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 
Lecture 12 Types of farming system
Lecture 12       Types of farming systemLecture 12       Types of farming system
Lecture 12 Types of farming system
Nickala1
 
amino compounds.pptx class 12_Govinda Pathak
amino compounds.pptx class 12_Govinda Pathakamino compounds.pptx class 12_Govinda Pathak
amino compounds.pptx class 12_Govinda Pathak
GovindaPathak6
 
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptxPreparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Dr Showkat Ahmad Wani
 
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Turkey Diseases and Disorders Volume 2 Infectious and Nutritional Diseases, D...
Ali Raei
 
RAPID DIAGNOSTIC TEST (RDT) overviewppt.pptx
RAPID DIAGNOSTIC TEST (RDT)  overviewppt.pptxRAPID DIAGNOSTIC TEST (RDT)  overviewppt.pptx
RAPID DIAGNOSTIC TEST (RDT) overviewppt.pptx
nietakam
 
Metallurgical process class 11_Govinda Pathak
Metallurgical process class 11_Govinda PathakMetallurgical process class 11_Govinda Pathak
Metallurgical process class 11_Govinda Pathak
GovindaPathak6
 
On the Lunar Origin of Near-Earth Asteroid 2024 PT5
On the Lunar Origin of Near-Earth Asteroid 2024 PT5On the Lunar Origin of Near-Earth Asteroid 2024 PT5
On the Lunar Origin of Near-Earth Asteroid 2024 PT5
Sérgio Sacani
 
when is CT scan need in breast cancer patient.pptx
when is CT scan need in breast cancer patient.pptxwhen is CT scan need in breast cancer patient.pptx
when is CT scan need in breast cancer patient.pptx
Rukhnuddin Al-daudar
 
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
Body temperature_chemical thermogenesis_hypothermia_hypothermiaMetabolic acti...
muralinath2
 
Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...
Sérgio Sacani
 
Zoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptxZoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptx
Dr Showkat Ahmad Wani
 
Lipids: Classification, Functions, Metabolism, and Dietary Recommendations
Lipids: Classification, Functions, Metabolism, and Dietary RecommendationsLipids: Classification, Functions, Metabolism, and Dietary Recommendations
Lipids: Classification, Functions, Metabolism, and Dietary Recommendations
Sarumathi Murugesan
 
Chromatography, types, techniques, ppt.pptx
Chromatography, types, techniques, ppt.pptxChromatography, types, techniques, ppt.pptx
Chromatography, types, techniques, ppt.pptx
Dr Showkat Ahmad Wani
 
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
home
 
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdfBotany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
JseleBurgos
 
Skin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _ControlSkin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _Control
muralinath2
 
Gel Electrophorosis, A Practical Lecture.pptx
Gel Electrophorosis, A Practical Lecture.pptxGel Electrophorosis, A Practical Lecture.pptx
Gel Electrophorosis, A Practical Lecture.pptx
Dr Showkat Ahmad Wani
 

Fall18 Git presentation

  • 1. INTRODUCTION TO GIT ERIC SODJA AND JUSTIN TIRRELL
  • 2. LINUS TORVALDS • Creator of linux os • Needed to collaborate with developers across the world at the push of the button • Develops git!
  • 3. WHAT IS GIT FOR • Managing different versions of code/documents • Group collaboration on coding projects • Downloading projects • Reverting to old versions ‘what if’ (reduces clutter)
  • 4. DOWNLOAD GIT (DO THIS FIRST) • Linux (Debian) - Command: sudo apt-get install git • Linux (Fedora) - Command: sudo yum install git • Mac - http://git-scm.com/download/mac • Windows - http://git-scm.com/download/win
  • 5. CREATING A GITHUB ACCOUNT • Sign Up for Github https://github.com/join?source=header • Request to join our repository https://github.com/SeedscapeEcology
  • 6. TELL GITHUB WHO YOU ARE Run these commands in git <using your email and password> • git config --global user.email "[email protected]" • git config --global user.name "Your Name"
  • 7. COMMANDS TO NAVIGATE IN THE BASH SHELL • cd .. - move up a directory • cd ~ - go to your home directory • cd “directory/directory/” – go to directory/directory/ • ls – list files and directories in the current directory
  • 8. SET UP YOUR LOCAL REPOSITORY • Go to the folder in which you’ll put your group repository cd /desired/folder/path • Create a local repository on your PC git init • Download our group repository into the folder git clone https://github.com/SeedscapeEcology/ProjectManagement.git
  • 12. ADD, COMMIT, PUSH • Add changes to the staging area git add file/path/filename.txt (adds specific file) git add –A (adds all files) git add –u (adds updates of existing files) • Commit changes into a new workspace image in local repository git commit –am “<Describe the changes made>” • Define your remote repository git remote add origin https://github.com/SeedscapeEcology/ProjectManagement.git • Push your changes to the remote repository git push origin master (for pushing the master branch) git push origin <branch> (for pushing an alternative branch)
  • 13. STATUS, LOG, DIFF • git status shows which files are tracked/untracked in the index • git log shows a list of the commit history in the local repository • git diff <branch name> shows the differences between the current branch and the named branch
  • 14. PULLING & FETCHING • git pull merges the remote repository into the workspace • git fetch merges the remote repository into the local repository
  • 16. PURPOSE OF BRANCHES • Testing new ideas • Maintaining the stability of the master branch
  • 17. TYPES OF BRANCHES • Local Branches • On your computer • Tracking Branches • In the remote repository Resource: https://longair.net/blog/2009/04/16/git-fetch-and-merge/
  • 18. BRANCHES • Creating Branches (locally) git branch <name of branch> • Merging Branches git merge <name of branch> (merges named branch into current) • Deleting Branches git branch –d <name of branch>
  • 19. MANAGING MERGE CONFLICTS • Git manages most merges by itself. When it can’t there are a few options: • Search through the files that have the merge conflicts for ==== <<< signs that highlight the issues • Git mergetool Have the mergetool walk you through addressing the conflict
  • 20. WHAT IS GITHUB • A site that hosts the different versions of your project • A company with a name. (Other options are available) • Website
  • 21. ALTERNATIVES TO BASH: GUI • gitk command that opens an in-built GUI • Git Kraken https://www.gitkraken.com/ • Github https://github.com/
  • 22. TABBING! • If you can’t remember a full command, you can just press the tab button to auto-complete the command or list potential commands for you!