Skip to content

Latest commit

 

History

History

git-commit-parents

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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