|
| 1 | +.\" Automatically generated by Pandoc 1.19.2.4 |
| 2 | +.\" |
| 3 | +.TH "MGITSTATUS" "1" "Jul 2019" "" "" |
| 4 | +.hy |
| 5 | +.SH NAME |
| 6 | +.PP |
| 7 | +mgitstatus \[en] Show uncommitted, untracked and unpushed changes for |
| 8 | +multiple Git repos. |
| 9 | +.SH SYNOPSIS |
| 10 | +.PP |
| 11 | +\f[B]mgitstatus\f[] [\f[B]\-\-version\f[]] [\f[B]\-w\f[]] [\f[B]\-e\f[]] |
| 12 | +[\f[B]\-f\f[]] [\f[B]\-\-no\-X\f[]] [\f[B]DIR\f[]] [\f[B]DEPTH=2\f[]] |
| 13 | +.SH DESCRIPTION |
| 14 | +.PP |
| 15 | +\f[B]mgitstatus\f[] shows uncommited, untracked and unpushed changes in |
| 16 | +multiple Git repositories. |
| 17 | +mgitstatus shows: |
| 18 | +.IP \[bu] 2 |
| 19 | +\f[B]Uncommitted changes\f[] if there are unstaged or uncommitted |
| 20 | +changes on the checked out branch. |
| 21 | +.IP \[bu] 2 |
| 22 | +\f[B]Untracked files\f[] if there are untracked files which are not |
| 23 | +ignored. |
| 24 | +.IP \[bu] 2 |
| 25 | +\f[B]Needs push (BRANCH)\f[] if the branch is tracking a (remote) branch |
| 26 | +which is behind. |
| 27 | +.IP \[bu] 2 |
| 28 | +\f[B]Needs upstream (BRANCH)\f[] if a branch does not have a local or |
| 29 | +remote upstream branch configured. |
| 30 | +Changes in the branch may otherwise never be pushed or merged. |
| 31 | +.IP \[bu] 2 |
| 32 | +\f[B]Needs pull (BRANCH)\f[] if the branch is tracking a (remote) branch |
| 33 | +which is ahead. |
| 34 | +This requires that the local git repo already knows about the remote |
| 35 | +changes (i.e. |
| 36 | +you\[aq]ve done a fetch), or that you specify the \-f option. |
| 37 | +mgitstatus does NOT contact the remote by default. |
| 38 | +.IP \[bu] 2 |
| 39 | +\f[B]X stashes\f[] if there are stashes. |
| 40 | +.PP |
| 41 | +Since there are a lot of different states a git repository can be in, |
| 42 | +mgitstatus makes no guarantees that all states are taken into account. |
| 43 | +.SH OPTIONS |
| 44 | +.TP |
| 45 | +.B \f[B]\-\-version\f[] |
| 46 | +Show version |
| 47 | +.RS |
| 48 | +.RE |
| 49 | +.TP |
| 50 | +.B \f[B]\-w\f[] |
| 51 | +Warn about dirs that are not Git repositories |
| 52 | +.RS |
| 53 | +.RE |
| 54 | +.TP |
| 55 | +.B \f[B]\-e\f[] |
| 56 | +Exclude repos that are \[aq]ok\[aq] |
| 57 | +.RS |
| 58 | +.RE |
| 59 | +.TP |
| 60 | +.B \f[B]\-f\f[] |
| 61 | +Do a \[aq]git fetch\[aq] on each repo (slow for many repos) |
| 62 | +.RS |
| 63 | +.RE |
| 64 | +.TP |
| 65 | +.B \f[B]\-c\f[] |
| 66 | +Force color output (preserve colors when using pipes) |
| 67 | +.RS |
| 68 | +.RE |
| 69 | +.PP |
| 70 | +You can limit output with the following options: |
| 71 | +.TP |
| 72 | +.B \f[B]\-\-no\-push\f[] |
| 73 | +Do not show branches that need a push. |
| 74 | +.RS |
| 75 | +.RE |
| 76 | +.TP |
| 77 | +.B \f[B]\-\-no\-pull\f[] |
| 78 | +Do not show branches that need a pull. |
| 79 | +.RS |
| 80 | +.RE |
| 81 | +.TP |
| 82 | +.B \f[B]\-\-no\-upstream\f[] |
| 83 | +Do not show branches that need an upstream. |
| 84 | +.RS |
| 85 | +.RE |
| 86 | +.TP |
| 87 | +.B \f[B]\-\-no\-uncommited\f[] |
| 88 | +Do not show branches that have unstaged or uncommitted changes. |
| 89 | +.RS |
| 90 | +.RE |
| 91 | +.TP |
| 92 | +.B \f[B]\-\-no\-untracked\f[] |
| 93 | +Do not show branches that have untracked files. |
| 94 | +.RS |
| 95 | +.RE |
| 96 | +.TP |
| 97 | +.B \f[B]\-\-no\-stashes\f[] |
| 98 | +Do now show stashes |
| 99 | +.RS |
| 100 | +.RE |
| 101 | +.SH EXAMPLES |
| 102 | +.PP |
| 103 | +The following command scans two directories deep for Git projects and |
| 104 | +shows their status: |
| 105 | +.IP |
| 106 | +.nf |
| 107 | +\f[C] |
| 108 | +$\ mgitstatus\ |
| 109 | +\&./fboender/sla:\ ok\ |
| 110 | +\&./fboender/multi\-git\-status:\ Needs\ push\ (master)\ Untracked\ files |
| 111 | +\&./other/peewee:\ ok\ |
| 112 | +\f[] |
| 113 | +.fi |
| 114 | +.PP |
| 115 | +To scan deeper (three dirs instead of two): |
| 116 | +.IP |
| 117 | +.nf |
| 118 | +\f[C] |
| 119 | +$\ mgitstatus\ 3 |
| 120 | +\f[] |
| 121 | +.fi |
| 122 | +.PP |
| 123 | +The following command scans three levels deep in \f[C]/opt/deploy/\f[] |
| 124 | +and hides repos that are \[aq]ok\[aq]. |
| 125 | +It does not show stashes: |
| 126 | +.IP |
| 127 | +.nf |
| 128 | +\f[C] |
| 129 | +$\ mgitstatus\ \-e\ \-\-no\-stashes\ 3\ /opt/deploy |
| 130 | +\f[] |
| 131 | +.fi |
| 132 | +.SH COPYRIGHT |
| 133 | +.PP |
| 134 | +Copyright 2016\-2019, Ferry Boender. |
| 135 | +.PP |
| 136 | +Licensed under the MIT license. |
| 137 | +For more information, see the LICENSE.txt file. |
| 138 | +.SH AUTHORS |
| 139 | +Ferry Boender. |
0 commit comments