Add a couple of questions and exercises
SSIA
This commit is contained in:
19
exercises/git/squashing_commits.md
Normal file
19
exercises/git/squashing_commits.md
Normal file
@ -0,0 +1,19 @@
|
||||
## Git - Squashing Commits
|
||||
|
||||
### Objective
|
||||
|
||||
Learn how to squash commits
|
||||
|
||||
### Instructions
|
||||
|
||||
1. In a git repository, create a new file with the content "Mario" and create a new commit
|
||||
2. Make change to the content of the file you just created so the content is "Mario & Luigi" and create another commit
|
||||
3. Verify you have two separate commits
|
||||
4. Squash the latest two commits into one commit
|
||||
|
||||
### After you complete the exercise
|
||||
|
||||
Answer the following:
|
||||
|
||||
* What is the reason for squashing commits?
|
||||
* Is it possible to squash more than 2 commits?
|
Reference in New Issue
Block a user