The commits help keep a record of the work. Thus the commits should be proper and multiple commits for the same work should be discouraged. Help the team to have a more clear commit history.
In this challenge, you will learn the concept of squashing commits and using rebase. Lesser hints will be available from now on ;)
- Create a new branch
challenge3
- Squash the last four commits into a single commit using the command
git rebase -i HEAD~{some-number} Think of this some number... this will varry. for example git rebase -i HEAD~2, git rebase -i HEAD~4
- Now git log and add take a screenshot to have it in the report.
- Push the changes and make a pull request using the description
Solved #3
Hint : You may read about squashing commits using interactive rebase.
You will be need to change three picks to squash.
You may enter into Vim while rebasing. It is hard to get out of it :P
The commits help keep a record of the work. Thus the commits should be proper and multiple commits for the same work should be discouraged. Help the team to have a more clear commit history.
In this challenge, you will learn the concept of squashing commits and using rebase. Lesser hints will be available from now on ;)
challenge3git rebase -i HEAD~{some-number}Think of this some number... this will varry. for examplegit rebase -i HEAD~2,git rebase -i HEAD~4Solved #3Hint : You may read about squashing commits using interactive rebase.
You will be need to change three
pickstosquash.You may enter into Vim while rebasing. It is hard to get out of it :P