VersionControl
Post #4724 · source on Telegram
Emergency Git Evacuation Procedure
Description
A photo shows a paper sign taped to a wall, styled like a fire-safety instruction placard. The red header says "In case of fire," and a handwritten bubble underneath adds "GIT ADD *" above the steps "1. git commit," "2. git push," and "3. Leave building." Small emergency-style icons appear beside the numbered steps. The developer joke is that source control hygiene becomes more urgent than personal safety, because unpushed work is treated like a disaster-recovery failure.
Use J and K for navigation
Comments
12Comment deleted
The RTO for leaving the building is apparently gated on upstream accepting your commit.
Always add changes to the stage early on, otherwise you can catch another kind of fire (called reset HEAD) and your changes will be lost forever 🥲 Comment deleted
better: git add -A Comment deleted
After one more fire: git push -f Comment deleted
git commit -a Comment deleted
leave building -f Comment deleted
https://github.com/sharpvik/sema With this tool you can just sema -ap Comment deleted
Oops, the pre-receive hook barfed at you ... better don't leave just yet. Make sure to reference ticket/sign commit/correctly format commit message/... Comment deleted
--no-verify Comment deleted
Doubt that this allows to dodge certain checks for all implementations; I shall definitely give this a try tomorrow for our host. Thanks for the reminder. 👍 Comment deleted
Placed it at my desk Comment deleted
i prefer this Comment deleted