Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: site/dev/contrib/revert.md

Issue 873483004: site/dev/contrib/revert formatting and details. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Another Patch Set Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/dev/contrib/revert.md
diff --git a/site/dev/contrib/revert.md b/site/dev/contrib/revert.md
index 9067e50cd8fdfd7e578ba25c2bd0d26bf3281c6a..55a3beb7ed7bac142434157a42c237218a4cb31c 100644
--- a/site/dev/contrib/revert.md
+++ b/site/dev/contrib/revert.md
@@ -3,16 +3,37 @@ How to revert a CL
Using one-click revert
----------------------
- * Find the codereview issue for the CL you want to revert.
- * Click the "revert" button.
+* Find the codereview issue for the CL you want to revert.
+* Click the "revert" button.
Using Git
---------
- * git checkout master
- * git pull --rebase && gclient sync
- * git checkout -b <branch_name> origin/master
- * git log
- * <Find the SHA1 of the commit you want to revert>
- * git revert <SHA1>
- * git cl upload
- * git cl land
+
+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 rietveld.
+
+ git cl upload
+
+Land the revert in origin/master.
+
+ git cl land
+
+Delete the local revert branch.
+
+ git checkout --detach && git branch -D @{-1}
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698