Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 228 Bytes

index.md

File metadata and controls

18 lines (13 loc) · 228 Bytes

git commit-parents

Show the commit's parents

Git alias:

commit-parents = !"f(){ \
    git cat-file -p \"${*:-HEAD}\" | \
    sed -n '/0/,/^ *$/{/^parent /p}'; \
};f"

Example:

git commit-parents