Browse Source

doc: add 'git clean -xfd' to backport guide

When changing from a recent version, e.g. 8.x to an older branch like 6.x
test artifacts sometimes hang around and cause failures. Using `git clean`
will prevent that from happening.

PR-URL: https://github.com/nodejs/node/pull/15715
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
v9.x-staging
Lance Ball 7 years ago
parent
commit
e517bc97d4
No known key found for this signature in database GPG Key ID: 1B4326AE55E9408C
  1. 5
      doc/guides/backporting-to-release-lines.md

5
doc/guides/backporting-to-release-lines.md

@ -44,6 +44,11 @@ cd $NODE_DIR
git fetch upstream v6.x-staging:v6.x-staging -f git fetch upstream v6.x-staging:v6.x-staging -f
# Assume we want to backport PR #10157 # Assume we want to backport PR #10157
git checkout -b backport-10157-to-v6.x v6.x-staging git checkout -b backport-10157-to-v6.x v6.x-staging
# Ensure there are no test artifacts from previous builds
# Note that this command deletes all files and directories
# not under revision control below the ./test directory.
# It is optional and should be used with caution.
git clean -xfd ./test/
``` ```
4. After creating the branch, apply the changes to the branch. The cherry-pick 4. After creating the branch, apply the changes to the branch. The cherry-pick

Loading…
Cancel
Save