Bash Script to Force an Empty Git Push
Sometimes, like when you’re testing hooks or trying to create synced remote and local repos, you’ll find yourself touching empty files just to get a git push going. This script automates this task by creating a unique temporary file, committing it, pushing, and then removing the file. #!/bin/sh TMP=tmp-`date +'%m%s'` touch $TMP git add $TMP git commit $TMP -m '(forced [...]
Wednesday, April 1, 2009
0 Comments