git
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
mdocker git reports a project’s git state. All calls are local
(git -C <toplevel>) — no network access.
git info
Section titled “git info”Print a snapshot of the project’s working tree.
mdocker git info <name>mdocker --json git info <name>The snapshot includes: branch (or detached-HEAD state); dirty counts (staged, unstaged, untracked); ahead/behind vs. upstream; last commit; remote URL; stash count; and worktrees.
| Behaviour | Detail |
|---|---|
| Non-repo path | Returns {is_repo: false} and exits 0. |
| Subdirectory of a repo | Resolves to git rev-parse --show-toplevel. |
| Network | None — ahead/behind is against the locally known upstream (no git fetch). |
The macOS app’s Git card is built from the --json output.
Related
Section titled “Related”Cookie-Einstellungen
Statistik-Werkzeuge setzen wir nur ein, wenn du zustimmst. Die notwendige Speicherung hält die Seite funktionsfähig; alles andere bleibt aus, bis du entscheidest.
Speichert deine Entscheidung aus diesem Dialog in deinem Browser (localStorage). Kein Cookie, keine Weitergabe an Dritte.
Google Analytics 4 über den Google Tag Manager, um die Nutzung der Seite zu messen. Wird erst nach deiner Einwilligung geladen.