louim / in-case-of-fire Goto Github PK
View Code? Open in Web Editor NEWIn case of fire, git commit, git push and leave the building
License: Other
In case of fire, git commit, git push and leave the building
License: Other
git out.
The command git commit
is not enough.
What we need is git commit -am fire
. The switch -a
adds all changes in tracked files, switch -m fire
sets the commit message to "fire", which is of a low quality, but if is justified by the emergency. The un-tracked files are ignored.
P.S: I understand it's a meme, but it might save your work! Besides I think displaying it, points out the importance and benefits of version tracking.
I don't mind you messing with people's safety, but I do mind you messing with uncommited changes! These "in case of fire" instructions are obviously incorrect and will often result in engineers not being able to push their changes to the remote repo due to possible conflicts! This might cause project delays, missed deadlines and create unnecessary vacancies (some employees will surely die in flames, trying to find the solution on Stack Overflow, which will in turn create unplanned tasks for your HR department, etc. - it's just going to be a mess).
What your "in case of fire" board should say instead is this:
git checkout -b fire_[EMPLOYEE_UID]
git add -A .
git commit -m 'Fire!'
git push --set-upstream origin fire_[EMPLOYEE_UID]
Create a new branch, commit your changes there and push the branch to the remote! Easy, no conflicts, no uncommited changes, just a tiny bit of merging once the smoke clears! Woo-hoo!
PS. Some employees might still die in flames trying to find their ID - nothing can be done about that I'm afraid, so better get your HR department ready, just in case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.