T1122

Ladda ner som PDF

Introduction to Git

This course covers how to practially use Git, while also providing a solid foundation for how Git works under the hood. Abandon your CVS pushbike and board your new Git helicopter!

Audience

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

Prior knowledge

Basic file management in Windows or Linux, good to be familiar with the command interface.

Courseware

Courseware in English.

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.

Contents:

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

Blogposts about Git

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.

Contents:

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

Blogposts about Git

Utbildningen levereras i samarbete med

Kursfakta

Kurs-ID: T1122
Längd: 1 dag
Pris exkl moms: 12 950 kr
Inregistrering: 09.00
Kursstart: 09.30
Kursslut (ca): 16.30
Kan betalas med:
TRAINING CARD

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

Tipsa