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

Téléchargez l'archive qui contient déjà un repository cloné dans le sous-dossier clone. Utilisez un revert pour annuler le dernier commit et pushez l'historique sur le repository distant. Une fois que c'est fait, ré-archivez le dossier complet et uploadez-le.

Le message de commit devra être "REVERT".

Votre soumission devra avoir l'architecture suivante:

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

Max file size: 1.0 MiB
Allowed extensions: .zip