AETERNAE AI RESEARCH LLC INDEPENDENT RESEARCH
ÆAETERNAERESEARCH
Sign inRequest access
← Malware catalog

Attributed metadata history

REPORTPUBLIC METADATA

git revert: undo a commit by adding a new one

Originally published on KAIROS. This article was drafted with AI assistance; the commands were re-run and verified on git 2.34.1, and every command output below comes from a recorded test run (see the evidence table). Source: https://kairospan.com/res/git-revert-full-en Revert records a new commit that undoes the target change. TE-06-A covers the no-conflict case: one commit reverted cleanly and the file returns to its earlier content. TE-06-B covers revert with -n. One conflict is recorded in TE-06-C; resolving a conflict and continuing the revert are not tested on this page. Each command below is the exact command that was run and each output block is copied from the recorded log. Test ids, log hashes and exit statuses are in the evidence table. (Test: 3 tests were run, TE-06-A, TE-06-B and TE-06-C. The expected non-zero exit is TE-06-C (exit status 1). Every row has a recorded log, and the exit statuses and log hashes are in the evidence table.) TE-06-A: git revert creates a new commit by default and undoes the target change Setup for this run, inside a throwaway directory (mktemp -d): git init -q . git symbolic-ref HEAD refs/heads/main git config user.email test@example.invalid git config user.name tester git config commit.gpgsign false printf 'one\n' > f.txt; git add f.txt; git commit -qm one printf 'two\n' > f.txt; git add f.txt; git commit -qm two Command: git revert --no-edit HEAD >/dev/null; echo commits=$(git log --oneline | wc -l); cat f.txt Recorded output: commits=3 one TE-06-B: revert with -n changes the index and the file but makes no commit Setup for this run, inside a throwaway directory (mktemp -d): git init -q . git symbolic-ref HEAD refs/heads/main git config user.email test@example.invalid git config user.name tester git config commit.gpgsign false printf 'one\n' > f.txt; git add f.txt; git commit -qm one printf 'two\n' > f.txt; git add f.txt; git commit -qm two Command: git revert -n HEAD; echo rc=$?; git status --short; echo commits=$(git log --oneline | wc -l); cat f.txt Recorded output: rc=0 M f.txt commits=2 one Exit status: 0. The output matches the expected text written before the run. TE-06-C: expected conflict, non-zero exit: reverting an older commit whose lines were changed again stops with exit status 1 Setup for this run, inside a throwaway directory (mktemp -d): git init -q . git symbolic-ref HEAD refs/heads/main git config user.email test@example.invalid git config user.name tester git config commit.gpgsign false printf 'one\n' > f.txt; git add f.txt; git commit -qm one printf 'two\n' > f.txt; git add f.txt; git commit -qm two printf 'three\n' > f.txt; git add f.txt; git commit -qm three The file ../out.txt sits one level above the working folder, inside the same throwaway tree. It holds the output of the git command; the output block below shows only the counts and the status lines printed by the command. Command: git revert --no-edit HEAD~1 >../out.txt 2>&1; rc=$?; echo conflict_lines=$(grep -c CONFLICT ../out.txt); git status --short; exit $rc Recorded output: conflict_lines=1 UU f.txt Exit status: 1. This status and the output match what was written before the run. Reading the recorded output The output has two lines. commits=3 is the number of lines in git log --oneline after the revert. By the setup, there were two commits before it, one and two, so the revert added a third commit and did not remove either of the others. The second line is the content of f.txt, which is one, the text it held before the commit two changed it to two. The output of git revert itself was sent to /dev/null, so the run does not show the message of the new commit. TE-06-B: git revert -n exited 0, git status --short printed M f.txt, and the commit count stayed 2, so no third commit was made, while f.txt already reads one. TE-06-C: the revert ex

Reference details

Source category
research-report
First reported
Dec 03, 2026 18:22 UTC
Last reported
Dec 03, 2026 18:22 UTC
Catalog updated
Dec 03, 2026 18:26 UTC
Record ID
17488e1463310178ef7ddba8317056981208cae4cae9c5ff704e9ad29963b451

Published indicators

Network indicators are visibly defanged. This page does not make them clickable or send them to another service.

No validated file hashes or network indicators are stored for this record.

Source observations

intelligence_src_6dc544294b7f21f98a

Source-provided label
Publisher RSS metadata
Evidence class
mentioned in report
Confidence
Not reported
Observed
Dec 03, 2026 18:22 UTC
Retrieved
Dec 03, 2026 18:26 UTC

This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.

Feed collection status

Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.

1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.

Review source update dates and status
  • intelligence_src_6dc544294b7f21f98aRecent successful batchLast successful batch: Last attempt:

Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.