152ad7e7fb
BUG=skia:5958 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4648 NOTRY=true DOCS_PREVIEW= https://skia.org/?cl=4648 Change-Id: I6a57b7f9b92f6b769ba2b78f8e0ab9f4ae7bb24e Reviewed-on: https://skia-review.googlesource.com/4648 Commit-Queue: Ravi Mistry <rmistry@google.com> Reviewed-by: Heather Miller <hcm@google.com>
40 lines
667 B
Markdown
40 lines
667 B
Markdown
How to revert a CL
|
|
==================
|
|
|
|
Using one-click revert
|
|
----------------------
|
|
* Find the codereview issue for the CL you want to revert.
|
|
* Click the "revert" button.
|
|
|
|
Using Git
|
|
---------
|
|
|
|
Update the local repository
|
|
|
|
git fetch origin master
|
|
|
|
Create a local branch with origin/master as its start point.
|
|
|
|
git checkout -b revert$RANDOM origin/master
|
|
|
|
Find the SHA1 of the commit you want to revert
|
|
|
|
git log origin/master
|
|
|
|
Create a revert commit.
|
|
|
|
git revert <SHA1>
|
|
|
|
Upload it to Gerrit.
|
|
|
|
git cl upload
|
|
|
|
Land the revert in origin/master.
|
|
|
|
git cl land
|
|
|
|
Delete the local revert branch.
|
|
|
|
git checkout --detach && git branch -D @{-1}
|
|
|