• Stars
    star
    174
  • Rank 214,528 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 11 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Check multiple git repository in one pass / Vérifiez vos dépôt git en une seule passe
https://travis-ci.org/badele/gitcheck.svg?branch=unittest

gitcheck

When working simultaneously on several git repositories, it is easy to loose the overview on the advancement of your work. This is why I decided to write gitcheck, a tool which reports the status of the repositories it finds in a file tree. This report can of course be displayed on the terminal but also be sent by email.

Now you can also check your host git from an docker container. See the docker section

Installation

pip install git+git://github.com/badele/gitcheck.git

Examples

Simple report

In a simple invocation, gitcheck shows for each repository found in the file tree rooted at the current working directory if they have changes to be committed or commits to be pushed.

$ gitcheck.py
Gitcheck simple report

Gitcheck simple report

Detailed report

This invocation is substantially identical to the previous one, but the generated report also enumerates modified files and pending commits.

$ gitcheck.py -v
Gitcheck detailed report

Gitcheck detailed report

Gitcheck customization

You can customize the output color, the gitcheck try to find ~/mygitcheck.py if it found, it is imported, see the mygitcheck.py.sample

Docker container

You can check your git repositories from an docker container (from your host)

From the host, you can use this command

$ docker run --rm -v `pwd`:/files:ro badele/alpine-gitcheck

or

$ docker run --rm -v `pwd`:/files:ro badele/alpine-gitcheck cd /files && gitcheck OPTIONS

You can also create a shell function into the host, exemple for ZSH

gitcheck (){
    docker run --rm -v `pwd`:/files:ro badele/alpine-gitcheck
}
#
$ gitcheck

More info about the gitcheck container https://registry.hub.docker.com/u/badele/alpine-gitcheck/

Options

-v, --verbose                        Show files & commits
--debug                              Show debug message
-r, --remote                         force remote update(slow)
-u, --untracked                      Show untracked files
-b, --bell                           bell on action needed
-w <sec>, --watch=<sec>              after displaying, wait <sec> and run again
-i <re>, --ignore-branch=<re>        ignore branches matching the regex <re>
-d <dir>, --dir=<dir>                Search <dir> for repositories
-m <maxdepth>, --maxdepth=<maxdepth> Limit the depth of repositories search
-q, --quiet                          Display info only when repository needs action
-e, --email                          Send an email with result as html, using mail.properties parameters
--init-email                         Initialize mail.properties file (has to be modified by user using JSON Format)

French version

A French version of this document is available here: http://bruno.adele.im/projets/gitcheck/

More Repositories

1

nix-homelab

Homelab and dotfiles made with NixOS
Nix
102
star
2

archlinux-auto-install

Automatically install archlinux (from livecd with Ventoy tools)
Shell
37
star
3

vide

Neovim custom configuration, oriented for DevOps role (bash, go, json, python, terraform, typescript, etc ...). not empty code :)
Lua
25
star
4

je-n-ai-pas-oublie

A lire avant d'aller voter :)
25
star
5

docker-dotfiles

A I3 desktop with Vim IDE editor and some terminal tools in docker container
Python
18
star
6

ansible-archlinux

Install and configure Archlinux with Ansible
Jinja
13
star
7

docker-recipes

A docker recipes
10
star
8

SDRHunter

Tools for searching the radio of signal
Python
9
star
9

fabrecipes

A recipes for Fabric & Fabtools
Python
8
star
10

pelican-theme-jesuislibre

jesuislibre pelican theme
HTML
6
star
11

dotfiles

My dotfiles
Shell
6
star
12

serialkiller

timeseries database with reduce system
Python
6
star
13

saltstack-config-public

saltstack-config-public
SaltStack
6
star
14

fresco

A radio frequency database
Go
5
star
15

github-summary

Python tool for generate github summary in multiple formats
Python
5
star
16

docker-insomnia

A insomnia docker image
Dockerfile
4
star
17

tetrapol-helper

Helper for using with tetrapol-kit
Python
4
star
18

world-datas-analysis

miscellaneous worlds data and analysis (ex: covid-19)
Python
4
star
19

garchdeps

Tool that show graphical dependencies of the archlinux packages
Python
4
star
20

qgis-starter-kit

A qgis starter kit
QML
3
star
21

python-project-template

A Python project template
Python
3
star
22

CADLibrary

CAD Library
Python
3
star
23

cfwf

Read and write Customized Fixed Width Format flat file library
TypeScript
2
star
24

tea-colors

Preview your terminal colors
Go
2
star
25

nix-apps

Some nix applications packages
Nix
2
star
26

cars-counter-simulator

cars-counter-simulator
Python
2
star
27

dotfiles-older

A shell dotfiles
Python
2
star
28

blog.jesuislibre.org

source du blog jesuislibre.org
CSS
2
star
29

bspwm-doc

Auto generated bspwm documentation
Shell
1
star
30

regardons-ailleurs

Site d'analyse de de données #opendata
HTML
1
star
31

wooden-scad

OpenSCAD sketch
OpenSCAD
1
star
32

domolab.website

domolab website
CSS
1
star
33

go-terminal-games

Console/TTY games writing in Go
Go
1
star
34

prime-number

prime number generator
Python
1
star
35

nix-projects

Nix
1
star