
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
git-sw-plugin
Advanced tools
Interactive CLI tool to install git skip-worktree aliases and prompt info
Interactive CLI tool to install git skip-worktree aliases and prompt info for bash and zsh shells.
Git Aliases: Convenient commands for managing skip-worktree files
git-sw-list - List all skip-worktree filesgit-sw - Add modified files to skip-worktreegit-unsw - Remove all files from skip-worktreePrompt Info: Display skip-worktree file count in your shell prompt
npx git-sw-plugin install
npx git-sw-plugin uninstall
After installation:
# List skip-worktree files
git-sw-list
# Add modified files to skip-worktree
git-sw
# Remove all files from skip-worktree
git-unsw
When you have files marked as skip-worktree, your prompt will show:
~/projects/myapp (main) 🔒 SW:3 ❯
The count updates automatically as you add/remove skip-worktree files.
Git's skip-worktree feature allows you to tell Git to ignore changes to tracked files. This is useful for:
Unlike .gitignore, skip-worktree works on tracked files.
install-git-sw-plugin/
├── bin/
│ └── cli.js # Executable entry point
├── src/
│ ├── index.js # Main orchestrator
│ ├── shell-detector.js # Shell and environment detection
│ ├── rc-file-manager.js # Safe RC file modifications
│ ├── prompt-parser.js # Parse existing prompts
│ ├── prompt-builder.js # Generate shell-specific code
│ ├── preview.js # Preview system (hybrid)
│ ├── ui.js # Interactive UI with enquirer
│ └── installer.js # Installation logic
├── package.json
└── README.md
Create an RC file first:
# For bash
touch ~/.bashrc
# For zsh
touch ~/.zshrc
Check file permissions:
chmod u+w ~/.zshrc # or ~/.bashrc
source ~/.zshrcgitskipworktree was added to your prompt orderThis is a local development project. To contribute:
MIT
FAQs
Interactive CLI tool to install git skip-worktree aliases and prompt info
The npm package git-sw-plugin receives a total of 4 weekly downloads. As such, git-sw-plugin popularity was classified as not popular.
We found that git-sw-plugin 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.