Version Control Intro to Git(hub) 101 David O’Brien

Slides:



Advertisements
Similar presentations
Github. Download & install git   Git bash  Git GUI.
Advertisements

Visual Studio Online. What it Provides Visual Studio Online, based on the capabilities of Team Foundation Server with additional cloud services, is the.
Patterns & practices Symposium 2013 Introducing Git version control into your team Mark
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Introduction to Version Control with SVN & Git CSC/ECE 517, Fall 2012 Titus Barik & Ed Gehringer, with help from Gaurav.
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
Version control Using Git Version control, using Git1.
Version Control. How do you share code? Discussion.
GIT version control. What is GIT Have you ever wished you could travel back in time when you develop a project…? Have you ever wished you could collaborate.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Git Basics. Git stores data as snapshots of the project over time When commit Save all the files If files have not changed, point to the previous identical.
1 Applied CyberInfrastructure Concepts ISTA 420/520 Fall
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Anubha Gupta | Software Engineer Visual Studio Online Microsoft Corp. Visual Studio Enterprise Leveraging modern tools to streamline Build and Release.
Sofia Event Center May 2014 Martin Kulov Git For TFS Developers.
Optimal Pipeline Using Perforce, Jenkins & Puppet Nitin Pathak Works on
Intro to Git presented by Brian K. Vagnini Hosted by.
© 2015 by Herb Holyst Introduction to git Cytomics Workshop December, 2015.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Jake Ginnivan Git for TFS Version Control developers DEV32 4.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Dr. Tanusri Bhattacharya
Basics of GIT for developers and system administrators
Stress Free Deployments with Octopus Deploy
Information Systems and Network Engineering Laboratory II
L – Modeling and Simulating Social Systems with MATLAB
Discussion #11 11/21/16.
Xkcd.com/1597.
Code Management With Github & Straw Resistance Measurements
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
LECTURE 2: Software Configuration Management
Version Control.
Discussion 11 Final Project / Git.
L – Modeling and Simulating Social Systems with MATLAB
Version control, using Git
Building an Automated Cloud Image Factory
Nano Server in the cloud - some real use cases to take away
Version Control with Git and GitHub
An introduction to version control systems with Git
SU Development Forum Introduction to Git - Save your projects!
Microsoft Automation on AWS
Git it Done with Team Foundation Server
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
An introduction to version control systems with Git
(Advanced) Web Application Development
LECTURE 3: Software Configuration Management
Introduction to Configuration Management
Git Version Control for Everyone
Continuous Integration For Databases
An introduction to version control systems with Git
Git-Github Tools Prepared for COP4331. Git-Github Tools Prepared for COP4331.
TFS from on-prem to the cloud with Azure DevOps Services
Using Github.
Introduction to Git and GitHub
Version Control with Git
Version Control with Git and GitHub
GitHub 101 Using Github and Git for Source Control
Version/revision control via git
Git Introduction.
Git GitHub.
Intro to Git & GitHub By Sean O’Mahoney.
Keeping your SQL Code safe
Introduction to The Git Version Control System
Presentation transcript:

Version Control Intro to Git(hub) 101 David O’Brien www.david-obrien.net, me@david-obrien.net, Senior DevOps Engineer Versent Fred Bainbridge www.fredbainbridge.com @FredBainbridge Now Micro

David O’Brien Fred Bainbridge @david_obrien @FredBainbridge MVP for Cloud and Datacentre Management MCSA Server 2012 @davidobrien1985 (github) www.david-obrien.net Infrastructure Automation, etc Aviation, automation, travel Beer and Baseball

Agenda Intro to Version Control What is a code repository? Let’s make a (git) baby Interactive demo

What is Version Control? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.

GitHUB is NOT git. It’s a hosted service running on top of git, providing a few extra capabilities.

What is a Distributed Version Control system? no SPOF Git works with snapshots at the lowest level Every git commit is stored with a SHA-1 checksum 40c00c445112b9541bb6343e4af953431662b7c3 Almost impossible to lose data (in transit or at rest)

Git init

Git config git config user.email 'me@david-obrien.net' git config user.name "David O'Brien" git config --global user.email 'me@david-obrien.net' git config --global user.name "David O'Brien"

Git add / git commit

A commit’s insides Readme.md install.ps1 Install-Module IseSteroids # New project Info info yada yada Install-Module IseSteroids Install-Module -Name IseSteroids Commit A Commit B 5fd3 Readme.md 3cb1 install.ps1 5fd3 Readme.md 4a1e install.ps1 5fd3 3cb1 4a1e http://onlywei.github.io/explain-git-with-d3/ # New project Info info yada yada Install-Module IseSteroids Install-Module –Name IseSteroids

Recap https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository

Git workflow A Dev’s step by step

Git clone git clone https://github.com/davidobrien1985/confdemos.git Cloning into 'confdemos'... remote: Counting objects: 348, done. remote: Total 348 (delta 0), reused 0 (delta 0), pack-reused 348 Receiving objects: 100% (348/348), 1.11 MiB | 391.00 KiB/s, done. Resolving deltas: 100% (112/112), done. Checking connectivity... done.

Let’s make a (git) baby Create a repo(sitory) or fork one We’ll use Github. However, Gitlab for example would work just as well. Clone it locally and start working

How and Why Resources Learn Git in a Month of Lunches Posh-Git Azure integration http://pcottle.github.io/learnGitBranching/ Why? This is really important. Want to learn more? Learn Git in a month of lunches is a good resource. There are a lot more out there and plenty of free resources available. The built in help menus are great too. Practice practice practice… For the system administrator git (source control) is a natural progression. Learn how to script and think you solved the riddles of the universe and then eventually determine you know very little. Develop strict naming and code formatting principals Create process and procedures for scripts in the enterprise Start using source control and wish you had used it the entire time. You want to take your scripting seriously. Always use source control. Always. No exceptions. Git is FREE and crazy powerful. It doesn’t require any server infrastructure or cost. Why wouldn’t you use it?

Visual Studio Team Services Project Management Agile\Scrum Workflow Custom Build stuff (DevOps) Azure Automation Source Control Git or VSTS Formerly Visual Studio Online. VSTS is another good option for source control. It has an opposite approach that github, all your repositories are private and you have to pay for publish repositories. GitHUB is the opposite, you have to pay for a private repository. VSTS also natively integrates with Visual Studio. So does GIT but it takes an extension.

What’s next? Sign up to Github or Gitlab Find a repo and fork it Put your own code into a repository (git init) Publish your code to Github or Gitlab

And Then …

Section Header This is the next section