GitLab cancel or delete a push

medlamine Semassel picture medlamine Semassel · May 23, 2016 · Viewed 15.1k times · Source

I want to cancel my last push, because a pushed the app/build folder changes Is it possible to revert a push or the last push in Gitlab?

Answer

CSchulz picture CSchulz · May 24, 2016

Either you can delete the commit locally and use force push or create a revert commit via GitLab UI (GitLab 8.5 or newer):

Select your commit in the history you want to revert and click on the revert button:

enter image description here

There will be a modal dialog. You can choice if you want to create a Merge Request or directly commit it to the default branch:

enter image description here

More details