CLI-Referenz

Befehlszeilenreferenz für git-edit-date — export git Metadaten an CSV übergeben, Bearbeiten Sie Daten und Autorenfelder und schreiben Sie den Filialverlauf neu.

Voraussetzungen

Schnellstart

git-edit-date export -o commits.csv
# edit author_name, author_email, author_date and committer_date in commits.csv
git-edit-date apply -file=commits.csv
git push --force-with-lease

Befehle

git-edit-date export [-o commits.csv] [-repo path]
git-edit-date apply -file=commits.csv [-repo path] [-allow-dirty]
git-edit-date completion bash|zsh

export

Exportiert den aktuellen Zweigverlauf nach CSV. Nur Commits sind erreichbar von HEAD sind im Preis inbegriffen (git rev-list --reverse HEAD).

apply

Schreibt den Zweigverlauf mithilfe von Metadaten aus CSV neu. Erfordert einen sauber funktionierenden Baum, es sei denn -allow-dirty ist bestanden. Ändert keine Commit-Nachrichten.

completion

Erstellt bash- oder zsh-Shell-completion-Skripte.

CSV-Format

"hash","author_name","author_email","author_date","committer_date","message"
"a1b2c3...","Alice","alice@example.com","2024-03-06T14:30:00+01:00","2024-03-06T15:00:00+01:00","Initial commit"

Shell-Vervollständigung

Bash (einmalig, aktuelle Shell):

source <(git-edit-date completion bash)

Bash / Zsh (Persistente Installation über Makefile):

make completion-install
# restart shell or: source ~/.bashrc

The .deb Das Paket installiert systemweit Vervollständigungen für bash und zsh.

Installation

curl -LO https://giteditdate.com/git-edit-date_amd64.deb
sudo dpkg -i git-edit-date_amd64.deb

Paket

make package
# -> deb/git-edit-date_<version>_amd64.deb

Installieren Sie nfpm:

go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest

Warnungen

Anleitung: tutorial · Fragen: FAQ