diff --git a/contributing-guides/git-terminal.md b/contributing-guides/git-terminal.md index f649a85d7f..a850b680dd 100644 --- a/contributing-guides/git-terminal.md +++ b/contributing-guides/git-terminal.md @@ -57,10 +57,10 @@ There are two ways to update your fork. ```bash git switch main -git remote add upstream https://github.com/tldr-pages/tldr.git # only run if you don't already have the upstream remote (check with "git remote -v") +git remote add upstream https://github.com/tldr-pages/tldr.git # only run if you don't already have the upstream remote (check with "git remote -v") git fetch upstream main -git rebase upstream/main # in case you have any merge conflicts, click the link below to see how to resolve them -git push --force-with-lease # not needed if you only want to update your local repository +git merge upstream/main # in case you have any merge conflicts, click the link below to see how to resolve them +git push ``` [How to resolve merge conflicts](https://docs.github.com/en/github/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-using-the-command-line)