
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Create a filtered copy of a git repository - keeping only the files you choose, with full commit history preserved.
Useful for publishing parts of a private repository as open source.
npm install -g git-filter
Or run directly:
npx git-filter config.json
Create a config.json:
{
"forceReCreateRepo": true,
"sourceRepoPath": ".",
"targetRepoPath": "../my-public-repo",
"allowedPaths": ["packages/frontend/*", "README.md"],
"ignoredPaths": ["packages/frontend/.env"]
}
Run it:
git-filter config.json
A new git repo appears at targetRepoPath with only the matching files - every commit, author, and date intact.
Fork of open-condo-software/gitexporter with nodegit (native C++ addon, unmaintained, won't compile on Node 18+) replaced by plain git CLI calls. Zero native dependencies, works on any Node version.
FAQs
Create a filtered copy of a git repo with full commit history preserved
The npm package git-filter receives a total of 3 weekly downloads. As such, git-filter popularity was classified as not popular.
We found that git-filter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.