pub fn scrub_git_env(command: &mut Command)Expand description
Removes every environment variable whose name starts with GIT_
from the given tokio Command’s environment. The spawned process
inherits every other variable from the parent (PATH, HOME,
LANG, …), just not the ones that redirect Git’s view of the
repository.
Pass the command BEFORE chaining .args(...) or .env(...) so
later .env(name, value) calls are not also removed.
§Example
use tokio::process::Command;
nb_api::scrub_git_env(&mut Command::new("nb"));