I had a weird loss of a git commit when my battery died unexpectedly.Continue reading post "#2520"
To edit a git commit somewhere before the last one, use rebase with the commit hash (via StackOverflow answer):Continue reading post "Change git commit"
I got an update link for my 10k Apart project on the 22cnd. I already had some updates committed, so I soon-after clicked the link. It wasn’t until yesterday that the update finally applied. So it was quite a relief when it finally did.Continue reading post "10k Apart: Updated"
Almost lost some work with git. I was using
git reset --hard to rewrite some history, but I forgot that I had some unstaged changes. Luckily, I had stashed it previously and still had the call in my terminal buffer, so I was able to get the object ID and apply it after verifying it was the right one with
git stash -p show $ID.
I don’t know why I didn’t realize this before, but git project versions can be managed just with tags rather than needing to create a branch for each point version. Packagist can go entirely by tags. I had been creating point version branches because Symfony does, but that’s really only needed if you need to continue updating a previous version. It’s overkill for small, one person projects. With a tag available, it wouldn’t be hard to create a branch later anyway if needed.
A couple months ago I finally made my first repos on GitHub. It provides a good place for me to store some of the code I use in an easily accessible location and also offers the potential for others to be able to make use of it and even contribute to it. I definitely like it so far. It has been quite easy to work with and offers a rather nice web interface. I can now not only access these repos from anywhere (with internet connectivity), but also read the source with its file browser and reader and view commit history with diffs.
I will work on these as need warrants and time allows. I will probably continue to add more of my collections of code that I’m fine with making public.