diff --git a/src/day_3/notes.md b/src/day_3/notes.md index d23f981..55b9881 100644 --- a/src/day_3/notes.md +++ b/src/day_3/notes.md @@ -66,6 +66,15 @@ git commit -m "Your commit message here" ## git merge +This command is used to combine two branches together. Use git checkout to visit the branch you want to merge to. + +```bash +$ git checkout main +$ git merge branch2 +``` + +This will merge the branch "branch2" into the branch, where this command was executed in.(Here: "main") + ## git reset ## git revert