
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-branch-notes
Advanced tools
A CLI tool to help you to manage Git branch notes with remote synchronization
Read this in other languages: Chinese.
Welcome to Git Branch Notes! A CLI tool for managing Git branch notes with file-based storage.
npm install -g git-branch-notes
Git Branch Notes now uses a file-based storage system. Branch notes are stored in a JSON file located at branch-notes.json in the root of your repository. This approach ensures that notes remain associated with branch names rather than commit hashes, making them persistent even when branches are updated with new commits.
Since the file is stored in the project root directory (not in .git/), it can be easily shared with team members through Git commits and pushes. This enables seamless collaboration on branch notes across your team.
The file structure looks like this:
{
"version": "1.0.0",
"notes": [
{
"branchName": "main",
"note": "This is the main branch",
"timestamp": "2023-09-15T12:34:56.789Z"
}
],
"lastUpdated": "2023-09-15T12:34:56.789Z"
}
git-bn init [-r|-l|-a]
This command initializes notes for branches. By default, it initializes remote branches.
Options:
-r, --remote: Initialize only remote branches (default)-l, --local: Initialize only local branches-a, --all: Initialize all branches (local and remote)git-bn list [-r|-l|-a]
This command lists branches with notes from the local branch-notes.json file only. It includes enhanced error handling and prompts.
Options:
git-bn list -r
git-bn list --remote
git-bn list -l
git-bn list --local
git-bn set "Working on new feature" ## set note for current branch
git-bn set -b feature-branch "Working on new feature"
git-bn set --branch feature-branch "Working on new feature"
This command automatically checks if the branch exists and adds it to the notes file if it doesn't exist.
git-bn get ## get note for current branch
git-bn get main
git-bn push
git-bn push -m "Update branch notes" ## Push with custom commit message
Push the branch-notes.json file to the remote repository. You can provide a custom commit message with the -m option.
git-bn pull
Pull the latest branch-notes.json file from the remote repository.
git-bn mapping
Shows a detailed mapping of all branch notes, including deleted branches with their status marked as "[DELETED]".
The tool automatically manages branch status changes:
git-bn list.This ensures that your branch notes are always up-to-date with your repository structure.
branch-notes.json
FAQs
A CLI tool to help you to manage Git branch notes with remote synchronization
We found that git-branch-notes 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.