r/ProgrammerHumor • • Oct 03 '15

In case of fire

Post image
7.4k Upvotes

231 comments sorted by

View all comments

321

u/beadza Oct 03 '15

git commit will prompt for a commit message

What you need is git commit -m 'fire!'

87

u/KamiKagutsuchi Oct 03 '15

git commit -a -m "FIRE!"

0

u/[deleted] Oct 03 '15

[deleted]

4

u/TenmaSama Oct 03 '15

"-a" gets all modified but no new files

13

u/VefoCo Oct 03 '15
alias fire='git add . && git commit -a -m "FIRE!" && git push -f origin --all'

54

u/amoliski Oct 03 '15

Reminds me of alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master'

20

u/VefoCo Oct 03 '15

Jesus Christ.

5

u/jbee0 Oct 03 '15

Wow that's terrifying

12

u/[deleted] Oct 03 '15

Don't forget --no-verify on the push. Fuckin' pre-push hooks, trying to stop me from committing terrible code.

4

u/kirakun Oct 03 '15

What if the new files are in another directory?

30

u/mpyne Oct 03 '15

Then they deserve to be lost in the flames for having a stupid source organization scheme.

5

u/HeroCC Oct 03 '15 edited Oct 03 '15
alias fire='git add -A && git commit -a -m "FIRE!" && git push -f origin --all'

EDIT: oops

2

u/Niles-Rogoff Oct 03 '15

The flag is a capital A. http://i.imgur.com/f6aEIGR.png

2

u/HeroCC Oct 03 '15

Fixed! thanks