Allows you to:
- 'Bookmark' a repo
- 'Bookmark' folders containing several repos
- Automatically fetch your bookmarked repos periodicially
- Show a summary view of:
- Your repo's branches
- Your repo's working copy changes
- If a branch is behind/ahead of its upstream
- Quickly
git pull
your repos - Quickly
cd
into your repos - Quickly open you repos in the great SourceTree GUI (https://www.sourcetreeapp.com/)
Be aware that in order for quick access it takes over a few short commands:
g
ga
gc
(after.bash_profile
update)gp
gs
gfbcd
gfbd
npm install git-folder-branches -g
Then, put function gc() { cd `gfbcd "$@"` ;}
at the bottom of your ~/.bash_profile
to enable the quick cd
functionality. Without this gc
won't work. You'll probably need to restart your shell session for it to take effect.
Tested on OS X. Might just work on Linux. Some tweaks probably needed for Windows.
https://raw.githubusercontent.com/ajones513/git-folder-branches/master/docs/usage.gif
## Other Features
g -x "some regular expression" ...
- exclude branches that have a name that matches one of the regexes provided. Run without providing any regular expressions to clear. The regular expressions are passed into new RegExp()
, so escape appropriately.
gpa
- after running g
or ga
, run gpa
to gp
(git pull
) all repos where the checked out branch has upstream changes.