Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (5 sloc) 173 Bytes
#!/usr/bin/env bash
set -eu
default_branch=$(git default-branch)
first_commit=$(git --no-pager log $default_branch.. --pretty=format:%h | tail -1)
git ri $first_commit~1
You can’t perform that action at this time.