1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash repo=$(mktemp -d) cd $repo git init git commit --allow-empty -m "Initial commit" touch file git add file git commit -m "Initial commit" git show