Skip to content

Instantly share code, notes, and snippets.

View sarahsturgeon's full-sized avatar
😅

Sarah Sturgeon sarahsturgeon

😅
View GitHub Profile
local RED = Color(255, 0, 0, 235)
local BLUE = Color(0, 0, 255, 235)
local WHITE = Color(255, 255, 255, 230)
local beamColor = RED
local beams = {}
local claws = ents.FindByClass("npc_clawscanner")
local Sounds = {
@sarahsturgeon
sarahsturgeon / _GitForceRewriter.md
Last active December 9, 2021 03:36
Git CLI: Automatically rewrite --force to --force-with-lease

Intro

Do you rebase often? Ever forget to --force on your subsequent push? This annoyance and impatience could tempt you into making a new alias, like:

git config --global alias.pushf 'push --force'

Yes, this will save you time. But will it save you headache? Maybe not.

--force is a destructive command by definition. It changes history.