Skip to content

Instantly share code, notes, and snippets.

@xudifsd
Created July 10, 2015 02:44
Show Gist options
  • Save xudifsd/bdbfc1eeba840e12d453 to your computer and use it in GitHub Desktop.
Save xudifsd/bdbfc1eeba840e12d453 to your computer and use it in GitHub Desktop.
avoid accidentally `git checkout .`, run as `safe-coding &`, exit with fg and ctrl-c
#!/bin/bash
while :
do
git add .
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment