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.

If you never heard about Git read Atlassian's Git tutorial

Git Clients

As Git client you may use anything you like, for instance

  • SmartGitrecommended, used in the lecture and exercises. SmartGit is a graphical interface for an underlying command-line based git implementation. It automatically installs a Git implementation suitable for your operating system. Make sure to choose “non-commercial licence” when you install SmartGit!!!
  • EGit – very conveninent if you use Eclipse anyway but not as nice to use as SmartGite. eGit can be installed simply by dragging the following icon to your running Eclipse: . Egit includes jGit as underlying Git implementation.
  • the GitBash command-line – if you prefer full control rather than ease of use. See WWW for implementations suitable for your operating system.

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

Type the following on a command prompt (no matter whether you are on Linux or on a git-bash shell in Windows):

ssh-keygen

When you are asked for a filename enter your first and second name in the form (all lower case)

firstname.secondname

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.

This creates two key files

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

You find the generated keys 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.

Make sure you send us only the public key! ;-)

Keep the private key private – don't let anyone have it!!!

Git Repositories for Your Assignments

For assignment 0 there is a public Git repository hosted at

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

← Please replace YYYY in the URL by the current year!

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 will get a private Git repository at

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

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

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/2017/infrastructure_git.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2023