Skip to content

Instantly share code, notes, and snippets.

@fiddlerwoaroof
Last active February 19, 2016 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiddlerwoaroof/2d6fdf9f0dee0f42cea3 to your computer and use it in GitHub Desktop.
Save fiddlerwoaroof/2d6fdf9f0dee0f42cea3 to your computer and use it in GitHub Desktop.
#!/usr/bin/zsh
git add $argv || exit 1
git commit || exit 2
git push || exit 3
exit 0
#!/usr/bin/env python
lines = []
try:
try:
line = raw_input('? ').strip()
while line != '.':
lines.append(line)
line = raw_input('? ').strip()
except EOFError:
pass
with open('.gitignore', 'a') as f:
for line in lines:
print >> f, line
except KeyboardInterrupt:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment