site/dev/contrib/revert formatting and details
NOTRY=true Review URL: https://codereview.chromium.org/873483004
This commit is contained in:
parent
96638d1db4
commit
2445216b7a
@ -3,16 +3,37 @@ How to revert a CL
|
|||||||
|
|
||||||
Using one-click revert
|
Using one-click revert
|
||||||
----------------------
|
----------------------
|
||||||
* Find the codereview issue for the CL you want to revert.
|
* Find the codereview issue for the CL you want to revert.
|
||||||
* Click the "revert" button.
|
* Click the "revert" button.
|
||||||
|
|
||||||
Using Git
|
Using Git
|
||||||
---------
|
---------
|
||||||
* git checkout master
|
|
||||||
* git pull --rebase && gclient sync
|
Update the local repository
|
||||||
* git checkout -b <branch_name> origin/master
|
|
||||||
* git log
|
git fetch origin master
|
||||||
* <Find the SHA1 of the commit you want to revert>
|
|
||||||
* git revert <SHA1>
|
Create a local branch with origin/master as its start point.
|
||||||
* git cl upload
|
|
||||||
* git cl land
|
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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user