Skip to content

Instantly share code, notes, and snippets.

@javabrett
Last active May 17, 2016 23:39
Show Gist options
  • Save javabrett/227f276e4eba94e4d483621d6d68b643 to your computer and use it in GitHub Desktop.
Save javabrett/227f276e4eba94e4d483621d6d68b643 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -x
set -e
TMP_GIT=$(mktemp -d)
cd $TMP_GIT
git init
git config user.name "some user"
git config user.email "[email protected]"
echo A > A
git add A
git commit -m "A"
echo B > B
git add B
git commit -m "B"
echo C > C
git add C
git commit -m "C"
git rm A
git commit -m "rm A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment