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

Side by Side 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, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 How to revert a CL 1 How to revert a CL
2 ================== 2 ==================
3 3
4 Using one-click revert 4 Using one-click revert
5 ---------------------- 5 ----------------------
6 * Find the codereview issue for the CL you want to revert. 6 * Find the codereview issue for the CL you want to revert.
7 * Click the "revert" button. 7 * Click the "revert" button.
8 8
9 Using Git 9 Using Git
10 --------- 10 ---------
11 * git checkout master 11
12 * git pull --rebase && gclient sync 12 Update the local repository
13 * git checkout -b <branch_name> origin/master 13
14 * git log 14 git fetch origin master
15 * <Find the SHA1 of the commit you want to revert> 15
16 * git revert <SHA1> 16 Create a local branch with origin/master as its start point.
17 * git cl upload 17
18 * git cl land 18 git checkout -b revert$RANDOM origin/master
19
20 Find the SHA1 of the commit you want to revert
21
22 git log origin/master
23
24 Create a revert commit.
25
26 git revert <SHA1>
27
28 Upload it to rietveld.
29
30 git cl upload
31
32 Land the revert in origin/master.
33
34 git cl land
35
36 Delete the local revert branch.
37
38 git checkout --detach && git branch -D @{-1}
39
OLDNEW
« 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