From 9e56f362f7af5660d96bc7196ae4cc1ff2efb6ca Mon Sep 17 00:00:00 2001 From: "christian.strauch" <christian.strauch@rwth-aachen.de> Date: Fri, 6 Jan 2023 01:10:19 +0100 Subject: [PATCH] add information how you can have access to the repo --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb02955..821850b 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,19 @@ This is a short README to our git workshop. ## Getting started +- go on `git.rwth-aachen.de`. You will see my project +- Press `Fork` to create a fork of the project +- use the Windows Explorer and go in a suitable directory - create a local directory named `git` - open a terminal in this directory -- `git clone git@git.rwth-aachen.de:christian.strauch/git-tutorial.git` -- `git fork git@git.rwth-aachen.de:<your_username>/git-tutorial.git` -- check with `git remote -v` if you have an origin stream (my repository) and a stream called `fork` (your fork) +- `git config --global user.name <yourusername>, for example "christian.strauch" +- `git config --global user.mail <youremail>` +- go in gitlab in the prererences of your account and then to access token. Generate an access token for all rights and save the password in a local file. + +- `git clone https://git.rwth-aachen.de/<your-username>/git-tutorial.git>> +- you will asked for username and password. Username is your email and password is the password of the access token +-git upstream https://git.rwth-aachen.de/christian.strauch/git-tutorial.git` +- check with `git remote -v` if you have an origin stream (your fork) and a stream called `upstream` (my repository) ## Basic commands -- GitLab