CLI-referentie

Commandoreferentie voor git-edit-date — exporteer git commitmetadata naar CSV, bewerk datums en auteursvelden en herschrijf de branchgeschiedenis.

Vereisten

Snel beginnen

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

Commando's

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

Exporteert de geschiedenis van de huidige branch naar CSV. Alleen commits die vanuit HEAD bereikbaar zijn, worden opgenomen (git rev-list --reverse HEAD).

apply

Herschrijft de branchgeschiedenis met metadata uit de CSV. Vereist een schone working tree, tenzij -allow-dirty wordt meegegeven. Wijzigt geen commitberichten.

completion

Genereert shell-aanvullingsscripts voor bash of zsh.

CSV-indeling

"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-aanvulling

Bash (eenmalig, huidige shell):

source <(git-edit-date completion bash)

Bash / Zsh (permanente installatie via Makefile):

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

Het .deb-pakket installeert systeembrede aanvullingen voor bash en zsh.

Installeren

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

Pakket bouwen

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

Installeer nfpm:

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

Waarschuwingen

Uitleg: tutorial · Vragen: FAQ