From a3d2250b6592ee83f9226f3124e607ed3985a298 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Aug 2023 10:59:27 +0200 Subject: [PATCH 1/3] Update notes.md git config --- src/day_3/notes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/day_3/notes.md b/src/day_3/notes.md index 2a0586a..6bbe4c8 100644 --- a/src/day_3/notes.md +++ b/src/day_3/notes.md @@ -4,6 +4,20 @@ The participants of the course will add a description to each of these Git subco ## git config +This command is used to pass information onto git. + +Example: + +```bash +$ git config --global user.name "USERNAME" +``` + +and + +```bash +$ git config --global user.email "EMAIL" +``` + ## git init ## git clone From 8e46045b01af10714fec787431dcfc0b36a4feec Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Aug 2023 11:02:22 +0200 Subject: [PATCH 2/3] Update notes.md git config --- src/day_3/notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/day_3/notes.md b/src/day_3/notes.md index 6bbe4c8..a688351 100644 --- a/src/day_3/notes.md +++ b/src/day_3/notes.md @@ -6,6 +6,7 @@ The participants of the course will add a description to each of these Git subco This command is used to pass information onto git. + Example: ```bash From 9a0b90063c46e019a70bab7f25bd60dd17f1df03 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Aug 2023 11:36:23 +0200 Subject: [PATCH 3/3] Update notes.md with git merge --- src/day_3/notes.md | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/day_3/notes.md b/src/day_3/notes.md index a688351..0e5e1c2 100644 --- a/src/day_3/notes.md +++ b/src/day_3/notes.md @@ -4,21 +4,6 @@ The participants of the course will add a description to each of these Git subco ## git config -This command is used to pass information onto git. - - -Example: - -```bash -$ git config --global user.name "USERNAME" -``` - -and - -```bash -$ git config --global user.email "EMAIL" -``` - ## git init ## git clone @@ -61,6 +46,15 @@ if you want to stage all changes. ## 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