Skip to content

Commit

Permalink
Update SQUASH_AND_MERGE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavgade20 committed Mar 10, 2022
1 parent 092bbf0 commit 5ae7ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SQUASH_AND_MERGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Usually, when multiple people work on the same file, managing everyone's contrib
## Setup

- Create a branch called `squashing`
- In your `squashing` branch, add a program to print `Hello, World` and save it in a file called `hello`(for example, `hello.py`)
- Switch back to `master`, and create a new branch called `hello-git`. In `hello-git`, add a program to print `Hello, git` and save it in a file called `hello`(this name has to be the same as the name above)
- In your `squashing` branch, add a program to print `Hello, World` and save it in a file called `hello`(for example, `hello.py`). Add it to git and commit it.
- Switch back to `master`, and create a new branch called `hello-git`. In `hello-git`, add a program to print `Hello, git` and save it in a file called `hello`(for example, `hello.py`. This name has to be the same as the name above). Add it to git and commit it.

Notice that we have modified/created the same file with the same path in the repository. What do you think will happen when we try to merge these branches?

Expand Down

0 comments on commit 5ae7ed9

Please sign in to comment.