The PowerShell Query:
PS> Get-History | `
Select-Object -ExpandProperty CommandLine | `
Where-Object { $_.ToString().StartsWith("git") } | `
ForEach-Object { $_ -replace '\w*\d[a-z]\w*', '<sha>' } | `
ForEach-Object { $_ -replace '-\d+', '-N' } | `
ForEach-Object { $_ -replace '-D .+', '-D some-branch' } | `
ForEach-Object { $_ -replace 'checkout .+', 'checkout some-branch' } | `
ForEach-Object { $_ -replace '-m ".+"', '-m "Some commit message"' } | `
Sort-Object | `
Get-Unique
The Output:
git add .\convert-coffee-to-type-script.ps1
git add -A
git branch
git branch -a
git branch -D some-branch
git checkout some-branch
git commit --amend -m "Some commit message"
git commit --amend --no-edit
git commit -m "Some commit message"
git diff master --name-status
git diff --name-status
git diff --name-status <sha>
git log --oneline --graph --decorate -N
git log --oneline --graph --decorate -N -a
git log --oneline --graph --decorate -N --all
git log --oneline --graph --decorate -N --branches master
git log --oneline --graph -N
git log --oneline -N
git merge -h
git merge --squash feature/convert-to-typescript/misc
git pull
git pull
git pull origin master
git push
git push --delete origin feature/convert-to-typescript/misc
git push --force-with-lease
git rebase master
git reflog
git reflog -N
git reflog -N
git reset --hard <sha>
git reset --hard head
git reset --hard head
git reset --soft origin/master
git status