
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@brettz9/git-utilities
Advanced tools
npm i @brettz9/git-utilities
You can add to Sourcetree any or all of the following Custom actions (being
sure to change the /path/to
portion to lead to where @brettz9/git-utilities
is
hosted.
Menu Caption: View File on Github (SHA commit)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --sha=$SHA $REPO/$FILE
Menu Caption: View File on Github (Latest on branch)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: $REPO/$FILE
Menu Caption: Directory on Github (SHA commit)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=directory --sha=$SHA $REPO/$FILE
Menu Caption: Directory on Github (Latest on branch)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=directory $REPO/$FILE
Menu Caption: Raw File on Github (SHA commit)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=raw --sha=$SHA $REPO/$FILE
Menu Caption: Raw File on Github (Latest on branch)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=raw $REPO/$FILE
Menu Caption: Blame File on Github (SHA commit)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=blame --sha=$SHA $REPO/$FILE
Menu Caption: Blame File on Github (Latest on branch)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=blame $REPO/$FILE
Menu Caption: History File on Github (SHA commit)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=history --sha=$SHA $REPO/$FILE
Menu Caption: History File on Github (Latest on branch)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=history $REPO/$FILE
Menu Caption: Commit on Github (SHA commit, Unified diff)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=commit --diff=unified --sha=$SHA $REPO/$FILE
Menu Caption: Commit on Github (Latest on branch, Unified diff)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=commit --diff=unified $REPO/$FILE
Menu Caption: Commit on Github (SHA commit, Split diff)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=commit --diff=split --sha=$SHA $REPO/$FILE
Menu Caption: Commit on Github (Latest on branch, Split diff)
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=commit --diff=split $REPO/$FILE
Menu Caption: Edit File on Github
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=edit $REPO/$FILE
Menu Caption: Delete File on Github
Script to run: /path/to/@brettz9/git-utilities/bin/open-git-url.sh
Parameters: --type=delete $REPO/$FILE
You can also add --branch=<branch>
within the parameters to target a
specific branch.
(Note: to allow you to use your system path instead of hard-coding the paths above, you'd apparently need to follow one of the solutions at https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-Hook-failing-because-paths-don-t-seem-to-be-set/qaq-p/274792 which create a wrapper application for Sourcetree that adds in path awareness.)
But the shell script at least will work without these solutions, as it
has the line source ~/.bash_profile
.
open-git-url
- You can run this by either a global npm install or within
a requiring project's package.json
.Run -h
to get the commands:
process.cwd()
).dialog-node
(already in use for errors) to get further info for
commit from user (e.g., branches to rebase onto master
or a specific
commit by SHA)npm view . repository
(or
npm view <npm-pkg-name> repository
) and use that as a base to check
(via HEAD
or API requests the presence of CHANGES files, releases (with
text) licenses, etc.) and also to use npm packages for opening their
Github commit history, etc. URLs.
/commits
URL, main /tree
URL, etc. (Would be like --interactive
but showing all by default and allowing actions after all listed,
including, but not limited to, opportunity to update all.)FAQs
CLI utility scripts for Git
We found that @brettz9/git-utilities demonstrated a not healthy version release cadence and project activity because the last version was released 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.