Skip to content

bluebones.net

Adventures in Computer Programming – bakert@gmail.com

Month: April 2025

Posted on April 21, 2025July 18, 2025

Git – You’re Doing It Wrong

Instead ofDo this
git checkout {file}git restore {file}
git checkout {branch}git switch {branch}
git checkout -b {newbranch}git switch -c {newbranch}
git push --forcegit push --force-with-lease
git rebasegit rebase --update-refs

Recent Posts

  • Are your Fellow Human Beings your Comrades?
  • muted, accent and secondary are all the same color in default shadcn/ui themes
  • Running a dozen Next.js devservers without losing your mind
  • Rebase a whole stack at once
  • shadcn/ui v3/v4 and –destructive theme variables
  • Psychopathic Git Shortcuts
  • Sort committers by average length of commit message
  • Gradient Borders with Transparent Background
  • How to keep your input and dismiss/cancel atuin
  • Starting more than one dev webserver each in its own terminal window (Mac)
Java Update Proudly powered by WordPress