Skip to content

Challenge 3 #3

@pranshukharkwal

Description

@pranshukharkwal

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 ;)

  1. Create a new branch challenge3
  2. 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
  3. Now git log and add take a screenshot to have it in the report.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions