latest posts
The internet is madness, information flying everywhere and it’s full of bellends who want to do bad things. A big portion of those people would love to see what you’re doing online and for the most part we aren’t doing anything interesting, perhaps browsing reddit or doomscrolling on Twitter.
The last few of my posts have been about Git and this one is no different, I want to shift gears though and instead of talking about specific git commands and their behaviour I would like to talk about gitrevisions. Gitrevisions are the arguments you pass to commands to specify either…
Every now and then you run into problems when merging or rebasing branches using git, and to make things worse your editor might ask you to accept “our” changes or “their” changes. Not prepared to give git the satisfaction of playing its little game you choose one and hope for the best which inevitably turns out to be the wrong one and you need to restart the merging/rebase process anew.
I am back again to talk about git, this time I wanted to focus on git reset
and what the various options --soft
, --mixed
, and --hard
are and the
different ways you can use the command. I want to talk about git reset
because
to understand the various ways you can use the command you really need to
understand the life cycle of files when working with git. That means I would
also need to explain the various stages you can think of a file as being in and
I love explaining shit.
So you’ve fucked up. You’ve merged something and production did an oopsie but you’ve managed to stop the bleeding by turning off the feature flag that guards your new feature (you did feature flag it, right?), now you need to revert your changes. I’m not sure why you’re reading blog posts when you should be working but I guess it’s a good thing you’re reading this one.
all posts
- - how SSL/TLS works
- - git revisions
- - git: ours and theirs
- - git reset
- - git revert
- - Ruby Modules
- - Character Encodings
- - Ruby: Enumerable & Enumer...
- - How Containers Work
- - How Git Works
- - Where Did Vim Come From?
- - Ruby: Blocks, Procs, and ...
- - Control Characters
- - Default Text Width
- - Ruby Object Model
- - Shell Startup Files
- - Untyped Constants In Go
- - EC2 VPN script
- - Creating a personal VPN u...
- - git bisect
- - Y2K and the Year 2038 Pro...
- - git add --patch
- - re: git rerere
- - git rebase --onto
- - git fixup
- - First post