Git manual

From ATI public wiki
Revision as of 10:01, 25 August 2015 by Hkinks (Talk) (Created page with "==Downloading Git== https://git-scm.com/downloads When installing Git on Windows operating system, installation settings can be set as default. (Use Git from Git Bash only; C...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Downloading Git

https://git-scm.com/downloads

When installing Git on Windows operating system, installation settings can be set as default. (Use Git from Git Bash only; Checkout Windows-style, commit Unix-stile line endings; Use MinTTY)

Getting started

Each student has already a repository generated beforehand. For example:

https://git.ttu.ee/kursused/iag0581/firstname.lastname.git

For authentication your UNI-ID will be used. (The same username and password that you use for logging in to the lab computers).

Assuming that Git is successfully installed, in Windows open start menu and search for Git Bash and open it. In Linux or Mac simply open terminal.

Cloning

Let's say that we want to clone the repository to our local directory at C:\workspace. First we have to change the current directory by typing to terminal:

cd /c/workspace

For cloning the existing repository from https://git.ttu.ee/kursused/iag0581/firstname.lastname.git, type in:

git clone https://git.ttu.ee/kursused/iag0581/firstname.lastname.git iag0581

As a result the repository is cloned into the local directory C:\workspace\iag0581 and we can change also our current directory to it by typing:

cd iag0581