$ ./mach wpt testing/web-platform/tests/webdriver/tests/cookies --webdriver-arg=-vv
$ ./mach test testing/marionette/test_cookie.js
-
Make code changes and stage them (
git add <files>
) -
Run:
$ git commit --amend
-
The previous step will open up the commit message in git's configured text editor. If you want - make changes to the commit message - then save and close the editor.
-
To verify that everything looks fine, run:
$ git show HEAD
This will show the diff of the commit you just amended and should now include the changes you staged in (1)
- You're done!
- Run:
$ git rebase --interactive HEAD~X
Where X
is the number of commits from HEAD where the commit you wish to amend is.
-
Git will now open its configured text editor and list all the commits from HEAD to your commit. Change
pick
toedit
for the commit you want to edit. Save and close the editor. -
Make your changes.
-
Commit your changes:
$ git commit --all --amend --no-edit
Where --all
stages unstaged changes, --amend
edits the commit and --no-edit
leaves the commit message unchanged.
- Complete the rebase:
$ git rebase --continue
- You're done!