在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sickill/git-dude开源软件地址:https://github.com/sickill/git-dude开源编程语言:Shell 100.0%开源软件介绍:git-dudegit-dude is a simple git desktop notifier. It monitors git repositories in current directory for new commits/branches/tags and shows desktop notification if anything new arrived. How it worksIt simply uses How does it lookFedora: Ubuntu: OSX: Haiku: RequirementsOn Linux:
On OSX:
Installation$ curl -skL https://github.com/sickill/git-dude/raw/master/git-dude >~/bin/git-dude
$ chmod +x ~/bin/git-dude * Make sure HomebrewGit-dude can be installed with the following command: $ brew install https://gist.github.com/lukaszkorecki/1289314/raw/022cd33fc366378552dc3527d72b994568644df1/git-dude.rb --HEAD The homebrew formula lives here. Usagegit-dude iterates over repositories that live inside the dude directory. This directory is nothing more than container for cloned repositories of projects you want to watch. Name it like you want, here for example we use ~/.git-dude: $ mkdir ~/.git-dude
$ cd ~/.git-dude Clone some repositories: $ git clone --mirror https://github.com/joelthelion/autojump.git
$ git clone --mirror git://github.com/pyromaniac/hoof.git I recommend Symlinked repositories work too. This way you can monitor already cloned projects: $ ln -s ~/code/tmuxinator . Now run this to monitor pwd: $ git dude You can also pass directory name as first argument to specify which directory to monitor instead of pwd. $ git dude ~/watched-repos This way you can have multiple dude directories each being monitored by separate git-dude process. ConfigurationGlobalSet how often git-dude should check for changes (in seconds, default: 60): $ git config --global dude.interval 30 Set path to icon used by desktop notifications (default: none): $ git config --global dude.icon ~/.git-dude/github_32.png Set custom notification command ( $ git config --global dude.notify-command 'gntp-send "$TITLE" "$DESCRIPTION" "$ICON_PATH"'
$ git config --global dude.notify-command 'echo -e "$TITLE\n\n\n$DESCRIPTION" | espeak --stdin -k20 -ven+12' Per-repositorySet path to icon used by desktop notifications for this repository (default: taken from global setting): $ git config dude.icon ~/.git-dude/dm-core/datamapper.png Tell git-dude to ignore specific repository (if you want to unmonitor it): $ git config dude.ignore true Custom upstream remoteWhen you have forked a repository you are likely to be more interested in what changes happen in the upstream repository rather than your own fork. Therefore it is possible to specify a custom remote:
With a Git remote configuration like below, it will monitor the upstream repo instead of your fork:
AuthorMarcin Kulik (http://ku1ik.com/ | @sickill) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论