SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Git

You will collaborate with the members of your exercise group and submit your exercise results via Git.

Git is the version control system that you will also be expected to know when you will have finished your master's degree. So better make sure you get to know it as soon as possible and use every opportunity to really master it! It will be one of the 'selling points' when you will apply for a job.

Git Clients

As Git client you may use anything you like. We recommend

  • the GitBash comamnd-line – if you prefer full control rather than ease of use
  • SmartGitused in the lecture and exercises
  • EGit – very conveninent if you use Eclipse anyway
Installing SmartGit

SmartGit is a graphical interface for an underlying command-line based git implementation. In the first configuration SmartGit recommends, depending on the operating system, a corresponding underlying Git implementation.

Installing eGit

eGit includes jGit as underlying Git implementation. Both can be installed simply by dragging the following icon to your running Eclipse:

Getting Access to the Git Server

To get access to our research group's Git server, you need to send us a public ssh key. This section tell you how to create it.

Tools

Linux has open-ssh installed.

In Windows an open-ssh version comes with Git for Windows, which is automatically installed as part of the installation of SmartGit. You find “git-bash.bat” in the git installation folder or, more easily, via the “Open Git-shell” command in the context-menu of SmartGit.

Steps

No matter whether you are on Linux or on a git-bash type:

ssh-keygen

When you are asked for a passphrase enter a password of your choice or don't enter anything (just hit <RETURN>) – is is up to you whether you want the double security of a key with password or just the key. It depends on how sure you are that nobody will get your private key.

When you are asked for a filename enter your first and second name in the form

firstname.secondname

This creates two key files

  • firstname.secondname.pub ← the public key that you send us (see below)
  • firstname.secondname ← the private key that you need to load at your first connection to our Git server

You find them eihter

  • in your home directory (Linux) or
  • in the “.ssh” folder of your user folder (Windows), or
  • in the folder in which you invoked the ssh-keygen command.

Do not forget to send us the public key! ;-)

Git Repositories for Your Assignments

For assignment 0 there is a public Git repository hosted at

ssh://git-se@git.iai.uni-bonn.de/alp_shared

To access it, download this private key file and store it without the “.txt” extension!!! Then use it in your Git client when accessing the above URL.

For all other assignments each exercise group has a private Git repository at

ssh://git-se@git.iai.uni-bonn.de/alp_group_NN 

(where NN is the number of your group). For the groups 1 to 9 just enter one digit, e.g. alp_group_1.

Cloninig a Repository

To git clone a repository use either the Git Bash command

$ git clone ONE_OF_THE_GIT_REPOSITORY_URLS_FROM _ABOVE 

or add the repository URL into the dialog for the “clone” command in your visual git client (here is a screenshot for SmartGit):

clon3.jpg

teaching/lectures/alp/2015/infrastructure_git.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019