Tag: git

  • Git – pushing to two remotes

    I am loving running a local Gogs instance – it’s nice pushing my git repos to a totally private hub that I know is backed up with all my other self-hosted infrastructure. Of course, there’s good reasons to have code in GitHub as well – my build-in-public philosophy, the vague possibility that some of it…

  • Gogs – your own tiny GitHub

    (edit: – I’ve had a rethink about my source hosting) Once you’re familiar with coding tools, like the excellent VS Code, and git, it’s immediately apparent that these tools can be applicable for other purposes. A great example is that I now do my financial accounting in plain text (using beancount). I have a python…

  • New Project Routine

    I have a sort of muscle memory for starting little web projects now. I seem to have landed on node/express SSR apps with HTMX sprinkles. So it goes a bit like this: Express Skeleton That’s my basic web app setup, but since this is an express app, and we’re using some EJS templating, there’s some…

  • Git/GutHub – macOS – marking file as executable

    I’m working on the world’s shortest shell script – it’s called by cron to pull down a JSON weather report to a text file using curl so I can expose it on an Nginx endpoint. The purpose is to allow me to hammer that weather API from multiple machines I control without violating the TOS…

  • Committed

    I quite like logging into GitHub and seeing my commit history as the graph with the green dots. Once I get up to a year it would be a great thing to have on a T-Shirt. I’d expect to be seeing the busy weekends, but Tuesday nights seem to be oddly productive. It could just…

  • git stash

    When I was writing the blog post for the last project, I needed the “before” code to paste into the post. I’d committed that code, so a quick way to go back without losing my changes. I hadn’t committed the new code, so there is a super easy way to accomplish this. This grabs the…

  • git – Rollback to last commit

    I’m on Project 12 of the #100Days course, and like a number of earlier “projects” it’s not really a project, but a series of type-along tutorials. Often these have the same format – there’s a base amount of code to provide the setup, then this base is used to try each of the tutorial techniques.…

  • Git – make all the commits into a single commit

    When I’m following a tutorial app, I generally pause and type up the code as I go, and make local commits with appropriate messages. This is almost completely unnecessary, but it seems like a good habit and doesn’t cost me anything – I just tick the box for creating the git when I start the…

  • Gitting Xcode to Push

    I’m very comfortable with doing all the routine git stuff from the command line, but it was bugging me that I hadn’t for the Xcode integration working. I was able to commit locally with no problem from Xcode, but could not push up to Github. It works fine from the command line, so the error…

  • Gitting up to date

    I’ve started the habit of branching my code for each feature or batches of features. This is not really needed, I’ve developing solo, and the code on main is not in production. I could just go on committing, but part of my process is about becoming competent with git. There are a couple of git…