mirror of https://github.com/nodejs/node.git
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>pull/15715/head
parent
b200a10c8b
commit
e517bc97d4
|
@ -44,6 +44,11 @@ cd $NODE_DIR
|
|||
git fetch upstream v6.x-staging:v6.x-staging -f
|
||||
# Assume we want to backport PR #10157
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue