Simple command-line utilities tool-belt. (For mac) Assumes git
, adb
, gcc
is accessible. (though it might partially without them)
Every git command gets confirm from you before executing harmful command until you told it not to (with -y option.)
This script will ask you for more information about which remote to use, which branch to use, etc. All configurations are per repo basis.
Configurations are stored at ~/.reden.json
. You can reset options per repo /w -reset
option.
git pa
: Prune from all remotes.git sync
: Sync(pull) with a specific remote. Especially useful when working with pull requests with one master repo.git pr
: Push current local branch to origin, and open pull request page.git master
: Fast-forward develop and master branch, and merge develop into master.git pp
: Pull and prune rebased branch. (Check if rebased into main branch using commit log)git open
: Open related website. (see "origin" remote, FETCH URL, github only for now)git open i
: Open issue pagegit open p
: Open project pagegit open pr
: Open PR pagegit open {number}
: Open a specific issue- Can receive multiple args.
git open 380 381 382
You can create .reden.js file in the git root directory to provide more options
module.exports = exports = {
// default : main, master, develop, remotes/*
"branchesToKeep": ["qa", "someBranchNotToDelete"]
}
Easier screen capture and post processing for attaching images to github issue, google drive, blog, etc.
andcapture
: Capture screen from currently connected android device, and downsize it to 640. (assume,adb
is inPATH
)ppimg
: Post-process image. Find recently added screen capture (png file) fromDesktop
, downsize and convert to jpg.ppimg
: Pick 1 recent capture, downsize to 640, convert to jpg.ppimg -i
: Interactive modeppimg -c
: Pick 1 recent capture, retain original size, convert to jpg and copy to clipboard.ppimg -o
: Pick 1 recent capture, retain original size, convert to jpg file.
Send a message to the specific device using Push-Bullet. You can go grab a cup of coffee until long-running client command finishes. Run once after installation to setup API token and default message.
Example)
$ npm install ; push
push --reset
: Reset push related configuration.
impbcopy
executable source code was from Alec's article.