Update Git Troubleshooting authored by Radek Ošlejšek's avatar Radek Ošlejšek
**Git says `fatal: refusing to merge unrelated histories`.** Git says **`Pulling without specifying how to reconcile divergent branches is discouraged`**
- Run `git config pull.rebase false`
Git says **`fatal: refusing to merge unrelated histories`.**
- Add `--allow-unrelated-histories` argument and try again. - Add `--allow-unrelated-histories` argument and try again.
**I cannot push to git, I am getting a message: ```GitLab: you are not allowed to push code to this project. Fatal: Could not read from remote repository.```** **I cannot push to git, I am getting a message: ```GitLab: you are not allowed to push code to this project. Fatal: Could not read from remote repository.```**
...@@ -9,7 +12,7 @@ ...@@ -9,7 +12,7 @@
- commit (save) changes: `git add -A && git commit -m "Message"` - commit (save) changes: `git add -A && git commit -m "Message"`
- remove (delete) changes: `git reset --hard` - remove (delete) changes: `git reset --hard`
**I get an error `Git command returned with the following error: <some-url>: 404 Not Found`.** I get an error **`Git command returned with the following error: <some-url>: 404 Not Found`.**
- Check your URL ends with **.git**, or use the _copy button_ on the project's gitlab web page - Check your URL ends with **.git**, or use the _copy button_ on the project's gitlab web page
**When I push my code to GitLab, I got an email saying ```Your pipeline has failed```.** **When I push my code to GitLab, I got an email saying ```Your pipeline has failed```.**
... ...
......