Basic git. Interactive.

The lecture is scheduled on Day 1, Tuesday morning.

Lecturers: Emanuele Olivetti and Rike-Benjamin Schuppner.

Course Material

Outline of the lecture and demos:

  • Version Control: git.
  • Scenario 1: single developer, local repository.
  • Demo single+local
  • Scenario 2: Team of developers, central remote repository. Minimalistic.
  • Demo multi+remote
  • Extras: git branch, how to set up central repo.

Files:

Exercises are on a separate page

Accounts

Git repositories to be used during the school are hosted on escher.fuw.edu.pl. Every students has an account which can be used only for repository access (see the list of login names). Authentication is performed with the ssh public/private key-pair installed on every USB stick. You don't need any special setup: when you run

git clone <username>@escher.fuw.edu.pl:/git/autumnschool/shared

or

git clone <username>@escher.fuw.edu.pl:personal.git

ssh will use the key automatically.

Weblinks and hints

For more control about what files to add to the staging area, it is often practical to use a graphical program. ‘git gui’ usually comes with the distribution and allows for easily picking the files you want to include in the next commit. (There is a share of other graphical tools for any OS available.)

For a common development workflow, have a look at “A successful Git branching model” and there is also a streamlined set of commands especially for this workflow which automatically takes care of switching the branches easily. “Why aren’t you using git-flow?”http://github.com/nvie/gitflow

Additional notes

 
materials/version_control.txt · Last modified: 2010/10/06 11:02 by zbyszek
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki