SlideShare a Scribd company logo
1 of 12
InCycle Software Discovery Session Notes
Page 1 of 12
Git Demo Script & Notes
Overview.................................................................................................................................................................................................................................................. 1
Presentation............................................................................................................................................................................................................................................. 2
Prerequisites ............................................................................................................................................................................................................................................ 2
Setup........................................................................................................................................................................................................................................................ 4
Demo Script.............................................................................................................................................................................................................................................. 4
Original Demo Script Notes.................................................................................................................................................................................................................... 11
Source Control ................................................................................................................................................................................................................................... 11
Eclipse ................................................................................................................................................................................................................................................ 11
Training .............................................................................................................................................................................................................................................. 11
Useful MSDN Links............................................................................................................................................................................................................................. 12
Git Resources ..................................................................................................................................................................................................................................... 12
Tools................................................................................................................................................................................................................................................... 12
Overview
 The primary purpose was to show the Git implementation inside of Visual Studio and compare and contrast Git based Team Projects with Team
Foundation Version Control (TFVC) based Team Projects.
 It is assumed that the audience is familiar with TFVC and this is presented a way to compare and contrast TFVC and Git.
 This document started as a rough script created by Dave Burnison for a Discovery session about Git and then morphed into a presentation that was given
to the Chicago ALM User Group.
 Key Point: Everything that we are going to demonstrate is part of one product family. MSysGit, is the only component that do not ship with Team
Foundation Server / Visual Studio.
InCycle Software Discovery Session Notes
Page 2 of 12
Presentation
 See Visual Studio 2013 ALM - Git Source Control.pptx
Prerequisites
 A Team Project on VisualStudioOnline, (e.g. CALMUG – Git)
o Scrum Process Template
o Git Version Control
o Two members (e.g. Dave Burnison daveburnison@yahoo.com and David Burnison, Jr. daveburnison@icloud.com)
o A few PBIs and tasks so that you can associate a task to a commit or two.
InCycle Software Discovery Session Notes
Page 3 of 12
o Contains one web application created in Visual Studio using File > New Project… with the following settings:
o When making source code changes, use Default.aspx and/or About.aspx as these files contain multiple text strings that can easily be changed to
generate the needed diffs between commits.
InCycle Software Discovery Session Notes
Page 4 of 12
Setup
 If you run through this for practice be sure to delete the PBI2DevBranch and revert Default.aspx and About.aspx to their original states.
 Open Visual Studio 2013 ALM - Git Source Control.pptx
 Open the Browser to https://daveburnison.visualstudio.com/DefaultCollection/CALMUG%20-%20Git
Demo Script
Instructions Screen Shot
Go to https://daveburnison.visualstudio.com/DefaultCollection/CALMUG%20-%20Git and
select “Open in Visual Studio”
Go to the “Connect” page, right click on the “CALMUG – Git” repo and select “clone”
Go to the Changes page.
Click on Actions > View History. Do the same from the web client to show that the remote
repository is in sync with my local repository.
 Open Commit 4e59d3eb, “Really important code change in the Master Branch.”
Commit to see a related work item.
Click on Actions > Open in File Explorer. Copy/Paste the path then open the solution from
that path in Visual Studio.
Open About.aspx and make some edits.
 Commit the changes.
Open Default.aspx and make some edits.
 Commit the changes.
Go to the web view to show that the changes are not yet on the server.
Go to Unsynced Commits and show that the commits are “Staged”
Press Sync
Go to the web view and refresh. Now you see the changes
Open Default.aspx & About.aspx and make some edits.
InCycle Software Discovery Session Notes
Page 5 of 12
From Changes, note how you can Exclude files if there are files that you have touched, but
you don’t want them to be part of the next Commit. This is how you manage the files that are
staged. Exclude Default.aspx.
Commit the change to About.aspx.
Include Default.aspx but DO NOT Commit the change yet
Note how you do other things from the Actions menu
 Open file Explorer
 Open a command prompt. Note that we are put in the appropriate context: e.g.
“C:%username%SourceRepos[Project Name]”
o Run “git status” to show the changes that are currently staged.
o Run “git remote –v” to show the connection to the TFS server.
o Run “git tag NewTag”
o Run “git help” to show the available commands.
o Run “git help fetch” to show how the detailed documentation will appear.
 View History
Go to Unsynced Commits and discuss the options as found on the Collaborate page. (Make a
Power point Page for this).
 Fetch - Preview the changes from your team before you integrate them into your
work. After you fetch a commit, to get more information, open its context menu and
choose View Commit Details.
 Pull – Get changes from the remote repo
o NOTE: If there are conflicts, you will be asked to resolve them.
 Push – Push your changes to the sever
o If your team has pushed commits to the branch since you last cloned or
pushed, then you must first pull all the changes from the remote repository
before you can push your changes into it.
 Sync –Pull changes from the remote repo into the local repo and push your changes
to the sever in a single step.
Go to Changes. Note how you can drop down the “Commit” button and select the following
options
 Commit
 Commit and Push
 Commit and Sync
Commit and Sync the changes to Default.aspx
Go to Branches and create PBI2DevBranch. Note how the branch is only in the local
repository unless you Publish it to the remote repository.
Publish the new branch to make it visible on the server.
InCycle Software Discovery Session Notes
Page 6 of 12
Close all documents and open the solution again.
Go to Solution Explorer (ensure that PBI2DevBranch is selected) and open & change
About.aspx.
Open About.aspx and make some edits.
 Associate the “PBI #2, Task #3” task
 Commit the changes.
Open Default.aspx and make some edits.
 Associate the “PBI #2, Task #3” task.
 Open the task and set the status to In Progress
 Commit the changes.
Go to Changes
 Note how the file list is automatically updated.
 Move Default.aspx to excluded changes.
 Change the context back and forth between PBI2DevBranch and Master and note
how About.aspx changes.
Commit and Sync the changes to About.aspx & Default.aspx
Ensure that the context is PBI2DevBranch and View History.
 NOTE: You can now see how Master and PBI2DevBranch have diverged.
Go to Branches and show how you could do a merge, but don’t do it now as it will be done as
part of a Pull Request
Go to the Web View and start a Pull Request
 New Pull Request
 Review changes in “PBI2DevBranch” relative to “Master”
 Enter ‘Changes related to “PBI #2, Task #2” ‘ as the subject.
 Enter ‘Please review my changes to blah blah blah’
 Enter ‘David Burnison Jr.’ as the reviewer
NOTE: As of 6/25/2014, Pull Requests are very new to VSO
and not yet available for on premises TFS. Refer to Conduct a
Git pull request on Visual Studio Online
Log out of Team Web Access and login as David Burnison Jr.
Go to Pull Requests > Assigned to Me and enter comments on the changed files.
Go to the Code page and enter
 line level comments
 file level comments
 overall comments (Click on the Discussion page to show the comments you just
entered and enter overall comments)
InCycle Software Discovery Session Notes
Page 7 of 12
Approve the changes. Click on the Thumbs up button. (Click on the Thumbs Down button just
to show the Rejected state.
Click on Complete merge.
Point out the new Commit link in the upper right hand corner.
Go to Commits page and show how the changes from the PBI2DevBranch have been merged
to Master.
Log out of Team Web Access and login as Dave Burnison
InCycle Software Discovery Session Notes
Page 8 of 12
Do a Fetch to show the commits that need to be applied to the Master Branch.
Right click and select View Commit Details. Then right click on one of the files and select
Compare with Previous to see the file diffs.
Go to Unsynced Changes and Pull the changes to apply the merge to the local repository’s
Master branch.
Now find PBI #2, Task #3 and change the status to Done.
Go to Builds and go over Master Branch Manual Build
 Uses a Git template
 Specify which projects to build
 View results for Manual Master Branch Build_20140624.2 and note how associated
tasks are in the build log.
Generate a Merge conflict
 Close the solution
 Set the context to the master branch
 Open the solution
 Make a change to About.aspx
InCycle Software Discovery Session Notes
Page 9 of 12
 Commit the change
Generate a Merge conflict
 Close the solution
 Set the context to the PBI2DevBranch branch
 Open the solution
 Make a change to About.aspx
 Commit the change
Go to Branches and merge from PBI2DevBranch to master branch
Open the conflict window and show how it is very similar to, if not the same as the TFVC
conflict resolution window.
Commit the merge.
Amend a commit:
 Make a change to About.apsx
 Commit it
 Go to the Unsynced Changes page, select the most recent commit
 Right click and select View Commit Details
 Select About.aspx, right click and select Compare with previous
 Make another change to About.apsx
 Commit it
 From the Changes window select Amend Previous Commit from the Actions menu
 Go to the Unsynced Changes page, select the most recent commit
 Right click and select View Commit Details
 Select About.aspx, right click and select Compare with previous
Go To Web Access and Show how you can have Multiple Repos per Team Project.
Clone the “Second Demo Repo”
 Copy the URL from Team Web Access
 Paste the URL into the Clone window in Visual Studio
Show how you can set E-mail alerts.
Show how you can use Team Room alerts
To get an existing branch go to Branches and select New Branch, but select the desired
branch from Origin.
Set security for a branch from within Team Web Access
To delete a branch, you must get the branch and then “Unpublish” it, and then delete it from
your local repository.
Start “Git GUI” and select “Open”. Open the local repository related to the “CALMUG - Git”
project and then select “Repository > Visualize all branch History”.
InCycle Software Discovery Session Notes
Page 10 of 12
InCycle Software Discovery Session Notes
Page 11 of 12
Original Demo Script Notes
Source Control
 Full support for Git
o Changes vs. Pending Changes
 Associating Tasks, Bugs, etc. with Commits / Changesets
 NOTE: This only applies to the one repository name that matches the name of the team project. Otherwise, you have to include
the Work Item ID in the format of #999 in the comments.
Eclipse
o Team Explorer Everywhere
 Work Items
 Builds
 Settings
 Jump to browser for Admin pages.
o Git (Git Repository Explorer)
 Just like using other Git repositories.
 Clone
 Get the TFS Git repository URL from the web Portal
 Go to Git Repository Explorer and select “Clone”
NOTE: If this is the 1st
repository, you can click on the link.
 Commit
 Right click on the repository and select “Commit”
o Check the files that you want to include.
 Push
 Right click on the repository and select “Push to Upstream”
Training
 Tool to learn all about how Git works (from Daniel)
o http://pcottle.github.io/learnGitBranching/
InCycle Software Discovery Session Notes
Page 12 of 12
 Pluralsight
o Git Fundamentals
o Git for Visual Studio Developers
Useful MSDN Links
 TFS/Git Home on MSDN
 Details on the differences between TFVC and Git
 Git repository permissions
 Work from the Git command prompt
 Visual Studio 2012 Tools for Git
 TFS Internals: How does TFS store Git files
Git Resources
 Git’s home on the internet
 Online book “Pro Git”
 Online reference for all git commands (don’t forget about “git help”!)
 Try git in your browser, with step-by-step instructions
 Tons of tips and tricks for Git users of all experience levels
Tools
http://msysgit.github.io/
Git command line for Windows (includes git-bash)
NOTE: This is what gets installed when you follow the prompts in Visual Studio.
http://code.google.com/p/tortoisegit
TortoiseGit (with TortoiseMerge)
http://github.com/dahlbyk/posh-git
Posh-Git (for PowerShell users)

More Related Content

What's hot

Orangescrum Time Log Gold add-on User Manual
Orangescrum Time Log Gold add-on User Manual Orangescrum Time Log Gold add-on User Manual
Orangescrum Time Log Gold add-on User Manual Orangescrum
 
Orangescrum Recurring task add on user manual
Orangescrum Recurring task add on user manualOrangescrum Recurring task add on user manual
Orangescrum Recurring task add on user manualOrangescrum
 
Time Log with Payment Add on User Manual
Time Log with Payment Add on User ManualTime Log with Payment Add on User Manual
Time Log with Payment Add on User ManualOrangescrum
 
Revisions
RevisionsRevisions
Revisionsswat_kh
 
Orangescrum Invoice Add on User Manual
Orangescrum Invoice Add on User ManualOrangescrum Invoice Add on User Manual
Orangescrum Invoice Add on User ManualOrangescrum
 
Kkl Simplified Dec 22, 08
Kkl Simplified Dec 22, 08Kkl Simplified Dec 22, 08
Kkl Simplified Dec 22, 08guestcec7822
 
OpenWhisk Lab
OpenWhisk Lab OpenWhisk Lab
OpenWhisk Lab Dev_Events
 
Orangescrum Mobile API Add on User Manual
Orangescrum Mobile API Add on User ManualOrangescrum Mobile API Add on User Manual
Orangescrum Mobile API Add on User ManualOrangescrum
 
SOP - 2013 Server Build
SOP - 2013 Server BuildSOP - 2013 Server Build
SOP - 2013 Server BuildRobert Jones
 
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Goutam Biswas
 
Hadoop Tutorial
Hadoop TutorialHadoop Tutorial
Hadoop Tutorialemedin
 
DevHelper Installation and User Documentation
DevHelper Installation and User DocumentationDevHelper Installation and User Documentation
DevHelper Installation and User DocumentationPatrick O'Conor
 
Getting started-with-oracle-so a- lab 11
Getting started-with-oracle-so a- lab 11Getting started-with-oracle-so a- lab 11
Getting started-with-oracle-so a- lab 11Amit Sharma
 
Flex 3 Cookbook 中文版V1
Flex 3 Cookbook 中文版V1Flex 3 Cookbook 中文版V1
Flex 3 Cookbook 中文版V1yiditushe
 
Compile open cpn on windows
Compile open cpn on windowsCompile open cpn on windows
Compile open cpn on windowsrandikaucsc
 
NT341 Mail Server Integration
NT341 Mail Server IntegrationNT341 Mail Server Integration
NT341 Mail Server IntegrationRyan Ellingson
 
Flash, actionscript 2 : preloader for loader component.docx
Flash, actionscript 2 : preloader for loader component.docxFlash, actionscript 2 : preloader for loader component.docx
Flash, actionscript 2 : preloader for loader component.docxSMK Negeri 6 Malang
 

What's hot (20)

Orangescrum Time Log Gold add-on User Manual
Orangescrum Time Log Gold add-on User Manual Orangescrum Time Log Gold add-on User Manual
Orangescrum Time Log Gold add-on User Manual
 
Orangescrum Recurring task add on user manual
Orangescrum Recurring task add on user manualOrangescrum Recurring task add on user manual
Orangescrum Recurring task add on user manual
 
Time Log with Payment Add on User Manual
Time Log with Payment Add on User ManualTime Log with Payment Add on User Manual
Time Log with Payment Add on User Manual
 
Revisions
RevisionsRevisions
Revisions
 
Orangescrum Invoice Add on User Manual
Orangescrum Invoice Add on User ManualOrangescrum Invoice Add on User Manual
Orangescrum Invoice Add on User Manual
 
Kkl Simplified Dec 22, 08
Kkl Simplified Dec 22, 08Kkl Simplified Dec 22, 08
Kkl Simplified Dec 22, 08
 
OpenWhisk Lab
OpenWhisk Lab OpenWhisk Lab
OpenWhisk Lab
 
Orangescrum Mobile API Add on User Manual
Orangescrum Mobile API Add on User ManualOrangescrum Mobile API Add on User Manual
Orangescrum Mobile API Add on User Manual
 
SOP - 2013 Server Build
SOP - 2013 Server BuildSOP - 2013 Server Build
SOP - 2013 Server Build
 
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
 
Hadoop Tutorial
Hadoop TutorialHadoop Tutorial
Hadoop Tutorial
 
DevHelper Installation and User Documentation
DevHelper Installation and User DocumentationDevHelper Installation and User Documentation
DevHelper Installation and User Documentation
 
flex_4_tutorials
flex_4_tutorialsflex_4_tutorials
flex_4_tutorials
 
Getting started-with-oracle-so a- lab 11
Getting started-with-oracle-so a- lab 11Getting started-with-oracle-so a- lab 11
Getting started-with-oracle-so a- lab 11
 
Flex 3 Cookbook 中文版V1
Flex 3 Cookbook 中文版V1Flex 3 Cookbook 中文版V1
Flex 3 Cookbook 中文版V1
 
Tutorial 1
Tutorial 1Tutorial 1
Tutorial 1
 
ssis lab
ssis labssis lab
ssis lab
 
Compile open cpn on windows
Compile open cpn on windowsCompile open cpn on windows
Compile open cpn on windows
 
NT341 Mail Server Integration
NT341 Mail Server IntegrationNT341 Mail Server Integration
NT341 Mail Server Integration
 
Flash, actionscript 2 : preloader for loader component.docx
Flash, actionscript 2 : preloader for loader component.docxFlash, actionscript 2 : preloader for loader component.docx
Flash, actionscript 2 : preloader for loader component.docx
 

Viewers also liked

VBA for technical writers - demo script
VBA for technical writers - demo scriptVBA for technical writers - demo script
VBA for technical writers - demo scriptTCUK
 
Finding Your FIT Online
Finding Your FIT OnlineFinding Your FIT Online
Finding Your FIT OnlinePaul Brown
 
Neli Vacheva - IDC
Neli Vacheva - IDCNeli Vacheva - IDC
Neli Vacheva - IDCIvo_Dreshkov
 
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließen
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließenDesign-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließen
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließenCorporate Startup Summit
 
FSS GLOBAL - Accelerating Success
FSS GLOBAL - Accelerating SuccessFSS GLOBAL - Accelerating Success
FSS GLOBAL - Accelerating SuccessIonut Turcila
 
2013 05 16 estrategia empresarial serrats
2013 05 16 estrategia empresarial serrats2013 05 16 estrategia empresarial serrats
2013 05 16 estrategia empresarial serratsConservas Serrats
 
20 películas ganadoras del premio oscar
20 películas ganadoras del premio oscar20 películas ganadoras del premio oscar
20 películas ganadoras del premio oscarmapaomorales
 
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...eCommerce Institute
 
Profit Link Presentation
Profit Link PresentationProfit Link Presentation
Profit Link PresentationZellDeen Legacy
 
Crowdfunding Einführung mit Beispielen aus Österreich
Crowdfunding Einführung mit Beispielen aus ÖsterreichCrowdfunding Einführung mit Beispielen aus Österreich
Crowdfunding Einführung mit Beispielen aus ÖsterreichWolfgang Gumpelmaier-Mach
 
Interview 100305a (ohne Tätigkeiten)
Interview 100305a (ohne Tätigkeiten)Interview 100305a (ohne Tätigkeiten)
Interview 100305a (ohne Tätigkeiten)Stefan Freimark
 
Dsa scuola
Dsa scuolaDsa scuola
Dsa scuolaimartini
 

Viewers also liked (20)

VBA for technical writers - demo script
VBA for technical writers - demo scriptVBA for technical writers - demo script
VBA for technical writers - demo script
 
Finding Your FIT Online
Finding Your FIT OnlineFinding Your FIT Online
Finding Your FIT Online
 
Neli Vacheva - IDC
Neli Vacheva - IDCNeli Vacheva - IDC
Neli Vacheva - IDC
 
Final Wine Catalog 12eng2
Final Wine Catalog 12eng2Final Wine Catalog 12eng2
Final Wine Catalog 12eng2
 
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließen
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließenDesign-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließen
Design-2-cost: wie Innovations-Spinner mit Controlling-Freaks Frieden schließen
 
Sao
SaoSao
Sao
 
POLYMER
POLYMERPOLYMER
POLYMER
 
SCM Gesamtprogramm 2016/2017
SCM Gesamtprogramm 2016/2017SCM Gesamtprogramm 2016/2017
SCM Gesamtprogramm 2016/2017
 
FSS GLOBAL - Accelerating Success
FSS GLOBAL - Accelerating SuccessFSS GLOBAL - Accelerating Success
FSS GLOBAL - Accelerating Success
 
2013 05 16 estrategia empresarial serrats
2013 05 16 estrategia empresarial serrats2013 05 16 estrategia empresarial serrats
2013 05 16 estrategia empresarial serrats
 
20 películas ganadoras del premio oscar
20 películas ganadoras del premio oscar20 películas ganadoras del premio oscar
20 películas ganadoras del premio oscar
 
Diari de sabadell (25 4-12)
Diari de sabadell (25 4-12)Diari de sabadell (25 4-12)
Diari de sabadell (25 4-12)
 
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...
Presentación Roberto Cibrian Campoy - Workshop "¿Cómo generar una experiencia...
 
Profit Link Presentation
Profit Link PresentationProfit Link Presentation
Profit Link Presentation
 
Actividad 13
Actividad 13Actividad 13
Actividad 13
 
Crowdfunding Einführung mit Beispielen aus Österreich
Crowdfunding Einführung mit Beispielen aus ÖsterreichCrowdfunding Einführung mit Beispielen aus Österreich
Crowdfunding Einführung mit Beispielen aus Österreich
 
BiGGSEA Hızlı Başla - Nisan 2016
BiGGSEA Hızlı Başla - Nisan 2016BiGGSEA Hızlı Başla - Nisan 2016
BiGGSEA Hızlı Başla - Nisan 2016
 
El marroc
El marrocEl marroc
El marroc
 
Interview 100305a (ohne Tätigkeiten)
Interview 100305a (ohne Tätigkeiten)Interview 100305a (ohne Tätigkeiten)
Interview 100305a (ohne Tätigkeiten)
 
Dsa scuola
Dsa scuolaDsa scuola
Dsa scuola
 

Similar to Chicago alm user group git demo script and notes

Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__greyKing Hom
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__whiteKing Hom
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_darkKing Hom
 
Git essential training & sharing self
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing selfChen-Tien Tsai
 
Intermediate git
Intermediate gitIntermediate git
Intermediate gitDan Shrader
 
BSADD-Git-TRAINING
BSADD-Git-TRAININGBSADD-Git-TRAINING
BSADD-Git-TRAININGbsadd
 
Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git John Tighe
 
Domino point2012 integrate domino designer with cvs source control
Domino point2012 integrate domino designer with cvs source controlDomino point2012 integrate domino designer with cvs source control
Domino point2012 integrate domino designer with cvs source controlFrank van der Linden
 
Dreamforce 13 developer session: Git for Force.com developers
Dreamforce 13 developer session: Git for Force.com developersDreamforce 13 developer session: Git for Force.com developers
Dreamforce 13 developer session: Git for Force.com developersJohn Stevenson
 
Introduction to Git for Force.com Developers
Introduction to Git for Force.com DevelopersIntroduction to Git for Force.com Developers
Introduction to Git for Force.com DevelopersSalesforce Developers
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdfEMERSON EDUARDO RODRIGUES
 
How to setup Svn in system
How to setup Svn in systemHow to setup Svn in system
How to setup Svn in systemMohammed Nayeem
 
Git Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptxGit Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptxDevOps University
 
Amending and Testing changes lab guide
Amending and Testing changes lab guideAmending and Testing changes lab guide
Amending and Testing changes lab guideopenstackcisco
 

Similar to Chicago alm user group git demo script and notes (20)

Git cheat sheet__grey
Git cheat sheet__greyGit cheat sheet__grey
Git cheat sheet__grey
 
Git cheat sheet__white
Git cheat sheet__whiteGit cheat sheet__white
Git cheat sheet__white
 
Git cheat sheet_dark
Git cheat sheet_darkGit cheat sheet_dark
Git cheat sheet_dark
 
Git essential training & sharing self
Git essential training & sharing selfGit essential training & sharing self
Git essential training & sharing self
 
Intermediate git
Intermediate gitIntermediate git
Intermediate git
 
BSADD-Git-TRAINING
BSADD-Git-TRAININGBSADD-Git-TRAINING
BSADD-Git-TRAINING
 
Bsadd training-git
Bsadd training-gitBsadd training-git
Bsadd training-git
 
Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git Git 101 - An introduction to Version Control using Git
Git 101 - An introduction to Version Control using Git
 
Domino point2012 integrate domino designer with cvs source control
Domino point2012 integrate domino designer with cvs source controlDomino point2012 integrate domino designer with cvs source control
Domino point2012 integrate domino designer with cvs source control
 
Git Pull Requests
Git Pull RequestsGit Pull Requests
Git Pull Requests
 
Dreamforce 13 developer session: Git for Force.com developers
Dreamforce 13 developer session: Git for Force.com developersDreamforce 13 developer session: Git for Force.com developers
Dreamforce 13 developer session: Git for Force.com developers
 
Introduction to Git for Force.com Developers
Introduction to Git for Force.com DevelopersIntroduction to Git for Force.com Developers
Introduction to Git for Force.com Developers
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf
 
Intro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucketIntro to Git, GitHub, and BitBucket
Intro to Git, GitHub, and BitBucket
 
Git Overview
Git OverviewGit Overview
Git Overview
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
How to setup Svn in system
How to setup Svn in systemHow to setup Svn in system
How to setup Svn in system
 
Git Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptxGit Tutorials Git vs GitHub.pptx
Git Tutorials Git vs GitHub.pptx
 
Git
GitGit
Git
 
Amending and Testing changes lab guide
Amending and Testing changes lab guideAmending and Testing changes lab guide
Amending and Testing changes lab guide
 

Recently uploaded

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 

Recently uploaded (20)

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 

Chicago alm user group git demo script and notes

  • 1. InCycle Software Discovery Session Notes Page 1 of 12 Git Demo Script & Notes Overview.................................................................................................................................................................................................................................................. 1 Presentation............................................................................................................................................................................................................................................. 2 Prerequisites ............................................................................................................................................................................................................................................ 2 Setup........................................................................................................................................................................................................................................................ 4 Demo Script.............................................................................................................................................................................................................................................. 4 Original Demo Script Notes.................................................................................................................................................................................................................... 11 Source Control ................................................................................................................................................................................................................................... 11 Eclipse ................................................................................................................................................................................................................................................ 11 Training .............................................................................................................................................................................................................................................. 11 Useful MSDN Links............................................................................................................................................................................................................................. 12 Git Resources ..................................................................................................................................................................................................................................... 12 Tools................................................................................................................................................................................................................................................... 12 Overview  The primary purpose was to show the Git implementation inside of Visual Studio and compare and contrast Git based Team Projects with Team Foundation Version Control (TFVC) based Team Projects.  It is assumed that the audience is familiar with TFVC and this is presented a way to compare and contrast TFVC and Git.  This document started as a rough script created by Dave Burnison for a Discovery session about Git and then morphed into a presentation that was given to the Chicago ALM User Group.  Key Point: Everything that we are going to demonstrate is part of one product family. MSysGit, is the only component that do not ship with Team Foundation Server / Visual Studio.
  • 2. InCycle Software Discovery Session Notes Page 2 of 12 Presentation  See Visual Studio 2013 ALM - Git Source Control.pptx Prerequisites  A Team Project on VisualStudioOnline, (e.g. CALMUG – Git) o Scrum Process Template o Git Version Control o Two members (e.g. Dave Burnison daveburnison@yahoo.com and David Burnison, Jr. daveburnison@icloud.com) o A few PBIs and tasks so that you can associate a task to a commit or two.
  • 3. InCycle Software Discovery Session Notes Page 3 of 12 o Contains one web application created in Visual Studio using File > New Project… with the following settings: o When making source code changes, use Default.aspx and/or About.aspx as these files contain multiple text strings that can easily be changed to generate the needed diffs between commits.
  • 4. InCycle Software Discovery Session Notes Page 4 of 12 Setup  If you run through this for practice be sure to delete the PBI2DevBranch and revert Default.aspx and About.aspx to their original states.  Open Visual Studio 2013 ALM - Git Source Control.pptx  Open the Browser to https://daveburnison.visualstudio.com/DefaultCollection/CALMUG%20-%20Git Demo Script Instructions Screen Shot Go to https://daveburnison.visualstudio.com/DefaultCollection/CALMUG%20-%20Git and select “Open in Visual Studio” Go to the “Connect” page, right click on the “CALMUG – Git” repo and select “clone” Go to the Changes page. Click on Actions > View History. Do the same from the web client to show that the remote repository is in sync with my local repository.  Open Commit 4e59d3eb, “Really important code change in the Master Branch.” Commit to see a related work item. Click on Actions > Open in File Explorer. Copy/Paste the path then open the solution from that path in Visual Studio. Open About.aspx and make some edits.  Commit the changes. Open Default.aspx and make some edits.  Commit the changes. Go to the web view to show that the changes are not yet on the server. Go to Unsynced Commits and show that the commits are “Staged” Press Sync Go to the web view and refresh. Now you see the changes Open Default.aspx & About.aspx and make some edits.
  • 5. InCycle Software Discovery Session Notes Page 5 of 12 From Changes, note how you can Exclude files if there are files that you have touched, but you don’t want them to be part of the next Commit. This is how you manage the files that are staged. Exclude Default.aspx. Commit the change to About.aspx. Include Default.aspx but DO NOT Commit the change yet Note how you do other things from the Actions menu  Open file Explorer  Open a command prompt. Note that we are put in the appropriate context: e.g. “C:%username%SourceRepos[Project Name]” o Run “git status” to show the changes that are currently staged. o Run “git remote –v” to show the connection to the TFS server. o Run “git tag NewTag” o Run “git help” to show the available commands. o Run “git help fetch” to show how the detailed documentation will appear.  View History Go to Unsynced Commits and discuss the options as found on the Collaborate page. (Make a Power point Page for this).  Fetch - Preview the changes from your team before you integrate them into your work. After you fetch a commit, to get more information, open its context menu and choose View Commit Details.  Pull – Get changes from the remote repo o NOTE: If there are conflicts, you will be asked to resolve them.  Push – Push your changes to the sever o If your team has pushed commits to the branch since you last cloned or pushed, then you must first pull all the changes from the remote repository before you can push your changes into it.  Sync –Pull changes from the remote repo into the local repo and push your changes to the sever in a single step. Go to Changes. Note how you can drop down the “Commit” button and select the following options  Commit  Commit and Push  Commit and Sync Commit and Sync the changes to Default.aspx Go to Branches and create PBI2DevBranch. Note how the branch is only in the local repository unless you Publish it to the remote repository. Publish the new branch to make it visible on the server.
  • 6. InCycle Software Discovery Session Notes Page 6 of 12 Close all documents and open the solution again. Go to Solution Explorer (ensure that PBI2DevBranch is selected) and open & change About.aspx. Open About.aspx and make some edits.  Associate the “PBI #2, Task #3” task  Commit the changes. Open Default.aspx and make some edits.  Associate the “PBI #2, Task #3” task.  Open the task and set the status to In Progress  Commit the changes. Go to Changes  Note how the file list is automatically updated.  Move Default.aspx to excluded changes.  Change the context back and forth between PBI2DevBranch and Master and note how About.aspx changes. Commit and Sync the changes to About.aspx & Default.aspx Ensure that the context is PBI2DevBranch and View History.  NOTE: You can now see how Master and PBI2DevBranch have diverged. Go to Branches and show how you could do a merge, but don’t do it now as it will be done as part of a Pull Request Go to the Web View and start a Pull Request  New Pull Request  Review changes in “PBI2DevBranch” relative to “Master”  Enter ‘Changes related to “PBI #2, Task #2” ‘ as the subject.  Enter ‘Please review my changes to blah blah blah’  Enter ‘David Burnison Jr.’ as the reviewer NOTE: As of 6/25/2014, Pull Requests are very new to VSO and not yet available for on premises TFS. Refer to Conduct a Git pull request on Visual Studio Online Log out of Team Web Access and login as David Burnison Jr. Go to Pull Requests > Assigned to Me and enter comments on the changed files. Go to the Code page and enter  line level comments  file level comments  overall comments (Click on the Discussion page to show the comments you just entered and enter overall comments)
  • 7. InCycle Software Discovery Session Notes Page 7 of 12 Approve the changes. Click on the Thumbs up button. (Click on the Thumbs Down button just to show the Rejected state. Click on Complete merge. Point out the new Commit link in the upper right hand corner. Go to Commits page and show how the changes from the PBI2DevBranch have been merged to Master. Log out of Team Web Access and login as Dave Burnison
  • 8. InCycle Software Discovery Session Notes Page 8 of 12 Do a Fetch to show the commits that need to be applied to the Master Branch. Right click and select View Commit Details. Then right click on one of the files and select Compare with Previous to see the file diffs. Go to Unsynced Changes and Pull the changes to apply the merge to the local repository’s Master branch. Now find PBI #2, Task #3 and change the status to Done. Go to Builds and go over Master Branch Manual Build  Uses a Git template  Specify which projects to build  View results for Manual Master Branch Build_20140624.2 and note how associated tasks are in the build log. Generate a Merge conflict  Close the solution  Set the context to the master branch  Open the solution  Make a change to About.aspx
  • 9. InCycle Software Discovery Session Notes Page 9 of 12  Commit the change Generate a Merge conflict  Close the solution  Set the context to the PBI2DevBranch branch  Open the solution  Make a change to About.aspx  Commit the change Go to Branches and merge from PBI2DevBranch to master branch Open the conflict window and show how it is very similar to, if not the same as the TFVC conflict resolution window. Commit the merge. Amend a commit:  Make a change to About.apsx  Commit it  Go to the Unsynced Changes page, select the most recent commit  Right click and select View Commit Details  Select About.aspx, right click and select Compare with previous  Make another change to About.apsx  Commit it  From the Changes window select Amend Previous Commit from the Actions menu  Go to the Unsynced Changes page, select the most recent commit  Right click and select View Commit Details  Select About.aspx, right click and select Compare with previous Go To Web Access and Show how you can have Multiple Repos per Team Project. Clone the “Second Demo Repo”  Copy the URL from Team Web Access  Paste the URL into the Clone window in Visual Studio Show how you can set E-mail alerts. Show how you can use Team Room alerts To get an existing branch go to Branches and select New Branch, but select the desired branch from Origin. Set security for a branch from within Team Web Access To delete a branch, you must get the branch and then “Unpublish” it, and then delete it from your local repository. Start “Git GUI” and select “Open”. Open the local repository related to the “CALMUG - Git” project and then select “Repository > Visualize all branch History”.
  • 10. InCycle Software Discovery Session Notes Page 10 of 12
  • 11. InCycle Software Discovery Session Notes Page 11 of 12 Original Demo Script Notes Source Control  Full support for Git o Changes vs. Pending Changes  Associating Tasks, Bugs, etc. with Commits / Changesets  NOTE: This only applies to the one repository name that matches the name of the team project. Otherwise, you have to include the Work Item ID in the format of #999 in the comments. Eclipse o Team Explorer Everywhere  Work Items  Builds  Settings  Jump to browser for Admin pages. o Git (Git Repository Explorer)  Just like using other Git repositories.  Clone  Get the TFS Git repository URL from the web Portal  Go to Git Repository Explorer and select “Clone” NOTE: If this is the 1st repository, you can click on the link.  Commit  Right click on the repository and select “Commit” o Check the files that you want to include.  Push  Right click on the repository and select “Push to Upstream” Training  Tool to learn all about how Git works (from Daniel) o http://pcottle.github.io/learnGitBranching/
  • 12. InCycle Software Discovery Session Notes Page 12 of 12  Pluralsight o Git Fundamentals o Git for Visual Studio Developers Useful MSDN Links  TFS/Git Home on MSDN  Details on the differences between TFVC and Git  Git repository permissions  Work from the Git command prompt  Visual Studio 2012 Tools for Git  TFS Internals: How does TFS store Git files Git Resources  Git’s home on the internet  Online book “Pro Git”  Online reference for all git commands (don’t forget about “git help”!)  Try git in your browser, with step-by-step instructions  Tons of tips and tricks for Git users of all experience levels Tools http://msysgit.github.io/ Git command line for Windows (includes git-bash) NOTE: This is what gets installed when you follow the prompts in Visual Studio. http://code.google.com/p/tortoisegit TortoiseGit (with TortoiseMerge) http://github.com/dahlbyk/posh-git Posh-Git (for PowerShell users)