Difference between revisions of "Git manual"
(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...") |
|||
Line 18: | Line 18: | ||
For cloning the existing repository from https://git.ttu.ee/kursused/iag0581/firstname.lastname.git, type in: | For cloning the existing repository from https://git.ttu.ee/kursused/iag0581/firstname.lastname.git, type in: | ||
− | + | <source lang="bash" collapse="false">git clone https://git.ttu.ee/kursused/iag0581/firstname.lastname.git iag0581</source> | |
+ | |||
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: | 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: | ||
− | + | <source lang="bash" collapse="false">cd iag0581</source> |
Revision as of 10:02, 25 August 2015
Downloading Git
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