git your .net on!sddconf.com/brands/sdd/library/git_your_dotnet_on.pdf · everyday git workflows...

22
Git Your .NET On! James Bender @ JamesBender [email protected] github.com/JamesBender

Upload: others

Post on 26-Jun-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Your .NET On!

James Bender

@[email protected]

github.com/JamesBender

Page 2: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

What is Git?

Content Tracking System

Non-File Locking

Distributed

Page 3: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

What We Will Cover

Basic Git concepts and terms

Creating a repository on GitHub

Everyday Git workflows with three tools

Page 4: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

What We Will Not Cover

Branching and deployment strategies

All of the Git tools available

Source Control governance or practices

Page 5: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Repository

Create locally on your hard drive

Create on Github, clone to your local drive

Page 6: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Remote RepositoryGit is distributed; no pre-determined “centralized” repository

Services like Github and Bit Bucket allows you to create repos in the cloud

Page 7: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Remote RepositoryYou can “link” your local repository to as many remote repositories as you like

Each repository contains a complete history of the project

Page 8: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Remote Repository

Main(Github)

Fred Wilma Barney Betty

Origin

[email protected]:JamesBender/GitRepoOne.git

Page 9: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Commits

Commit track a series of changes to the directories or files in your repository

Page 10: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Branches

Creates a separate commit history independent of the main history

Can be merged back into the main history at a later time

Page 11: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Branches

Page 12: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Why use Branches?Separate code by release

Enables you to develop specific features independent of main branch

Allows you to isolate the work of contributors pending a code review

Page 13: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Branches

Page 14: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Rebase

Allows you to alter where a sequence of commits is based from

Provides a clean, linear, easier to understand commit history

Page 15: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Rebasing

A B C D

E F

Page 16: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Rebasing

A B C D

E F

Page 17: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Git Terms and Concepts

Three ways to “Git”

Command Line – Git for Windows

Windows App – Github for Windows

Within Visual Studio – VS Tools for Git

Page 18: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Three ways to “Git”

Command Line – Git for Windows

Windows App – Github for Windows

Within Visual Studio – VS Tools for Git or TFS Explorer

Page 19: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Three ways to “Git”

Command Line – Git for Windows

Windows App – Github for Windows

Within Visual Studio – VS Tools for Git or TFS Explorer

Page 20: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Where to get Git

Command Line – msysgit.github.io

Windows App – windows.github.com

VS Tools for Git - bit.ly/1ih95zC

Page 21: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Other Helpful Links

Git Immersion - gitimmersion.com

https://www.atlassian.com/git/tutorial

Page 22: Git Your .NET On!sddconf.com/brands/sdd/library/Git_Your_DotNET_On.pdf · Everyday Git workflows with three tools. What We Will Not Cover Branching and deployment strategies All of

Thank you!

• www.JamesCBender.com

• github.com/JamesBender

[email protected]

• Twitter: @JamesBender

• hallwayconversations.com