All Projects â†’ suin â†’ git-remind

suin / git-remind

Licence: MIT license
Never forget to git commit and push

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to git-remind

git-commands-workflows
🚀 All the git commands and workflows you need to know
Stars: ✭ 50 (-41.86%)
Mutual labels:  git-workflow, git-commit, git-push
git-emojis-hook
Simple git hook to provide strong guidelines for commit message with emojis
Stars: ✭ 46 (-46.51%)
Mutual labels:  git-workflow, git-commit
styleguide
Official code style guide of Banksalad
Stars: ✭ 91 (+5.81%)
Mutual labels:  git-commit
k8s-security-configwatch
Git action to generate security lint report for Kubernetes workload YAML files on PR
Stars: ✭ 27 (-68.6%)
Mutual labels:  git-workflow
git-open-pull
convert a github issue into a pull request
Stars: ✭ 51 (-40.7%)
Mutual labels:  git-workflow
Gitreflow
Reflow automatically creates pull requests, ensures the code review is approved, and squash merges finished branches to master with a great commit message template.
Stars: ✭ 1,488 (+1630.23%)
Mutual labels:  git-workflow
No-Nonsense-Github-Project
A 1 hour video series covering some fundamentals and basic usage of .Git and Github.
Stars: ✭ 62 (-27.91%)
Mutual labels:  git-workflow
run-if-changed
Run a command if a file changes via Git hooks
Stars: ✭ 25 (-70.93%)
Mutual labels:  git-workflow
git-workflow-zh
如何安全地使用 Git 的指导方案
Stars: ✭ 85 (-1.16%)
Mutual labels:  git-workflow
gitmoji-plugin
Choose the right emoji emoticon for git commit, make git log commit more interesting.
Stars: ✭ 110 (+27.91%)
Mutual labels:  git-commit
therapist
Work out your commitment issues.
Stars: ✭ 29 (-66.28%)
Mutual labels:  git-commit
auto-commit-msg
A VS Code extension to generate a smart commit message based on file changes
Stars: ✭ 61 (-29.07%)
Mutual labels:  git-commit

git-remind

git-remind is a command line tool that prevent you to forget git-commit and git-push.

Features

git-commit/git-push status

git-remind checks across the all git repositories in your computer, and it displays the status whether there are uncommitted files and there are ahead commits which should be pushed to remote.

Desktop Notification

git-remind notifies you git-commit/git-push status using desktop notification. This feature is tested macOS, but it will work in Windows and Linux.

Installation

Homebrew

brew install suin/suin/git-remind

Manually

Download build binary from the releases.

Configuration

Add remind.paths to your .gitconfig, using your own absolute path to the repository directories.

[remind]
	paths = /Users/you/projects/foo,/Users/you/projects/bar

If you have some git repositories (e.g. ~/projects/foo and ~/projects/bar) in the same directory (e.g. in ~/projects) , you may specify the path using wildcard (e.g./Users/you/projects/*):

[remind]
	paths = /Users/you/projects/*

You can also utilise the git config command to configure git-remind to avoid the manually editing of the .gitconfig.

git config --global remind.paths '/Users/you/projects/*'

Check the configuration using following command:

git-remind paths # Shows path patterns configuration
git-remind repos # Shows git repositories to be reminded

Usage

Display git-commit/git-push status

$ git-remind status
Need to commit: /Users/suin/projects/myapp1
Need to commit and push: /Users/suin/projects/myapp2

Short status like git status -s

$ git-remind status -s
C  /Users/suin/projects/myapp1
CP /Users/suin/projects/myapp2

Show all status including up-to-date repositories

$ git-remind status -a
Need to commit: /Users/suin/projects/myapp1
Need to commit and push: /Users/suin/projects/myapp2
Up-to-date: /Users/suin/projects/myapp3

Desktop Notification

git-remind status-notification

Ad-hoc paths configuration

The paths can be specified with --path option instead of git global configuration remind.paths.

$ git-remind --path '/path/to/dir/*' paths
/path/to/dir/*

The option accepts multiple paths giving two or more --path options.

$ git-remind --path '/path/to/dir1/*' --path '/path/to/dir2/*' paths
/path/to/dir1/*
/path/to/dir2/*

Also giving the environment variable GIT_REMIND_PATHS, it makes the same effect.

$ export GIT_REMIND_PATHS='/path/to/dir1/*,/path/to/dir2/*'
$ git-remind paths
/path/to/dir1/*
/path/to/dir2/*

When both of --path option and GIT_REMIND_PATHS are given, the paths become the combination of the both.

$ export GIT_REMIND_PATHS='/path/to/dir1/*,/path/to/dir2/*'
$ git-remind --path '/path/to/dir3/*' paths
/path/to/dir1/*
/path/to/dir2/*
/path/to/dir3/*

Advanced usage

Scheduled reminder (cron)

To get scheduled reminder, set up crontab. Following example send notifications every 20 minutes:

PATH=/usr/local/bin:/usr/bin:/bin

*/20 * * * * git-remind status-notification > /dev/null 2>&1

Jumping to the repositories

By combining git-remind and fzf, you will be able to jump the repositories that needs to commit or push:

cd $(git remind status -n | fzf)

It would be useful that you set command alias in your .bashrc/.zshrc:

alias grj='cd $(git remind status -n | fzf)'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].