Information

Author(s) Mathieu Jadin
Deadline No deadline
Submission limit No limitation

Sign in

Git Disaster Scenario 2 - Cancel a pushed commit

In a previous exercise, you had to cancel an unpushed commit.

Although you might be tempted to change the history of a reposistory, this is generally a bad idea when you work with several people because this may d'erase modifications they made on their own copy. In this case, you should not use reset but only revert. Indeed, the latter adds a new commit that reverts the previous ones but do not delete them.

We want to move from

https://inginious.org/course/git/git_catastrophy_scenario_2/git-error.svg

to

https://inginious.org/course/git/git_catastrophy_scenario_2/git-revert.svg

You may then push these modifications to the remote repository:

https://inginious.org/course/git/git_catastrophy_scenario_2/git-push.svg

Download the archive which already contains a cloned repository in the subfolder clone. Use revert to cancel the last commit and push the history onto the remote repository. Afterwards, zip the whole folder and upload it.

The commit message has to be "REVERT".

Your submission needs to respect the following hierarchy:

git-revert-remote/
├── bare.git/
|   └── [...]
└── clone/
    └── [...]

Max file size: 1.0 MiB
Allowed extensions: .zip