Skip to content
Snippets Groups Projects
Commit 75d961f5 authored by Michael Martins's avatar Michael Martins
Browse files

more readme fixes

parent df3a9f39
No related branches found
No related tags found
No related merge requests found
......@@ -140,13 +140,13 @@ To get new changes that are pushed to __this__ main repository the simplest way
origin git@gitlab.uni-hannover.de:<your_username>/data_analysis_lab_2024.git (push)
```
Because you did the fork from the interface you can also get the new changes from the interface. But the better way to it is to add a _'remote'_ pointing to the fork (Add a keyname for the main repository). The textbook name for a repo you forked from is __upstream__.
Add a remote named _upstream_ pointing to *this* repo using: `git remote add upstream git@gitlab.uni-hannover.de:gianluca.pagliaro/data_analysis_lab_2024.git`. Now when you run `git remote -v`you should see something *like* this:
Add a remote named _upstream_ pointing to *this* repo using: `git remote add upstream git@gitlab.uni-hannover.de:m.jasper.martins/data_analysis_lab_2024.git`. Now when you run `git remote -v`you should see something *like* this:
```
$ git remote -v
origin git@gitlab.uni-hannover.de:<your_username>/dalab_2024.git (fetch)
origin git@gitlab.uni-hannover.de:<your_username>/dalab_2024.git (push)
upstream git@gitlab.uni-hannover.de:gianluca.pagliaro/dalab_2024.git (fetch)
upstream git@gitlab.uni-hannover.de:gianluca.pagliaro/dalab_2024.git (push)
origin git@gitlab.uni-hannover.de:<your_username>/data_analysis_lab_2024.git (fetch)
origin git@gitlab.uni-hannover.de:<your_username>/data_analysis_lab_2024.git (push)
upstream git@gitlab.uni-hannover.de:m.jasper.martins/data_analysis_lab_2024.git (fetch)
upstream git@gitlab.uni-hannover.de:m.jasper.martins/data_analysis_lab_2024.git (push)
```
The best way to pull the new changes is using the `rebase` command. This means that any commits you have made will be _'rebased'_ onto the new changes in the repository you have forked. **IMPORTANT**: Make sure you have commited all your changes before proceeding.
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment