T1120

Ladda ner som PDF

Introduction to Git with Visual Studio 2012

With Microsoft's release of CTP2, we now have tools to integrate Git into Visual Studio, and in this course, we'll take a look at this integration. The course starts from the basics, providing a solid foundation and understanding how Git and distributed version control systems (DVCS) work. It covers how to practically work with Git from within Visual studio, using official tools from Microsoft.

In the last several years, distributed version control has revolutionized the way we do development. Among the various DVCS offerings, Git is a popular, flexible and advanced open-source tool that increases team productivity as less time is spent on merge conflicts and branching becomes painless.

Målgrupp

.NET-Developers with Visual Studio experience and either no prior experience of version control, or users of traditional(centralized) systems wanting to learn about distributed version control.

Förkunskaper

Grundläggande filhantering i Windows eller Linux, gärna vara bekant med kommandogränssnitt.

Kursmaterial

Kursmaterial på engelska ingår.

Agenda

What's version control?

  • Why do we want it?

A quick history

  • RCS, CVS, SVN
  • Centralized vs distributed
  • Merging: a solution that turned into a problem

Walkthrough exercise I

  • init, add, commit
  • status, log, diff
  • branch, checkout, (simple) merge

Understanding the DAG

  • blobs, trees, commits
  • gitk
  • SHA hashes

Going distributed

  • Adding remotes to your project
  • A pull is a fetch and a merge
  • A centralized location?
  • Hosted git

Walkthrough exercise II

  • remote, clone, push, pull
  • resolving conflicts

Rebasing

  • The undesirability of merge commits
  • Rewriting history
  • The push/rebase tension

Walkthrough exercise III

  • commit --amend
  • rebasing a branch
  • pull --rebase
  • rebase --interactive

Misc

  • The index
  • The reflog
  • rm, mv
  • cherry-pick
  • reset
  • stash
  • Tags

Agenda

What's version control?

  • Why do we want it?

A quick history

  • RCS, CVS, SVN
  • Centralized vs distributed
  • Merging: a solution that turned into a problem

Walkthrough exercise I

  • init, add, commit
  • status, log, diff
  • branch, checkout, (simple) merge

Understanding the DAG

  • blobs, trees, commits
  • gitk
  • SHA hashes

Going distributed

  • Adding remotes to your project
  • A pull is a fetch and a merge
  • A centralized location?
  • Hosted git

Walkthrough exercise II

  • remote, clone, push, pull
  • resolving conflicts

Rebasing

  • The undesirability of merge commits
  • Rewriting history
  • The push/rebase tension

Walkthrough exercise III

  • commit --amend
  • rebasing a branch
  • pull --rebase
  • rebase --interactive

Misc

  • The index
  • The reflog
  • rm, mv
  • cherry-pick
  • reset
  • stash
  • Tags

Utbildningen levereras i samarbete med

Kurs-ID: T1120
Längd: 1 dag
Kan betalas med:
TRAINING CARD

Lämna dina kontaktuppgifter om du önskar en företagsintern utbildning.