Skip to content

Commit 870be89

Browse files
authored
Update HOWTO.md
1 parent 9e817c1 commit 870be89

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

HOWTO.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ $ git remote add upstream https://github.com/Tahanima/leetcode-solution-curation
4040
# Switches to `main` branch
4141
$ git checkout main
4242

43-
# Resets local `main` branch to match `upstream` repository's `main` branch
44-
$ git reset --hard upstream/main
43+
# Fetches the branches and their respective commits from the `upstream` repository
44+
$ git fetch upstream
4545

46-
# Push changes to your forked `leetcode-solution-curation` repo
46+
# Merges the changes from upstream/main into your local default branch
47+
$ git merge upstream/main
48+
49+
# Pushes changes to your forked `leetcode-solution-curation` repo
4750
$ git push origin main
4851
```
4952

0 commit comments

Comments
 (0)