Tag: Version Control
-
Fix broken Docker networking in GitLab Runner pipeline
Out of the blue this past week, networking between my Docker containers running in my GitLab CI/CD pipeline stopped working. I bet you’re thinking that I pushed some new code and it broke, and I decided to take the low road and blame my tech stack? Absolutely not. After an issue years ago that bit…
-
git error: path is unmerged
While attempting to update my dotfiles locally on my MacBook Pro, I ran into a bit of a dilemma with one of my files that I had edited but never committed. Not a big deal, I can just run git stash and apply the changes again later. No such luck…
-
Showing differences of staged files with git
Something I don’t like about git, primarily because it doesn’t fit into my personal development workflow, is how git diff only applies to files that have not been staged to commit. Sure, it makes sense if you are the type to stage files locally on a regular basis without pushing…
-
Response Time Comparison: GitLab Pages vs. Cloudflare Pages
While I compare VPS hosting providers every month, I actually don’t my personal blog (this site) on a VPS anymore. Come to think of it, I don’t even remember if this particular iteration of my own private slice of the Internet has ever been on a VPS instance. I’ve definitely…
-
How to push an empty git commit
We’ve all been there. We need to trigger something from a commit to a git repository, and instead of triggering the build directly, we end up tweaking something in a file, committing it, and pushing it. It’s usually just adding a blank line (and subsequently removing it, depending on where…
-
How to push to multiple git repos at once
A while back I fell in love with GitLab, specifically their GitLab Runners. This was at a time before GitHub had GitHub Actions, so I decided to move the majority of my git repositories over to GitLab. Fast forward a few years, GitHub has Actions, and more importantly, it seems…
-
How to get the default git branch
As the world has been shifting away from using terms like master and slave in technology, I was left wondering what the heck I was going to do about my git aliases that relied explicitly on the word master. git itself makes it really easy to swap the default branch…
-
Only run step for specific version with GitHub Actions
With my recent exploration of GitHub Actions, I’ve had to figure out things that I’ve already figured out with other systems like GitLab Runners and Travis CI. One such thing is conditionally running steps. For things like code coverage, I’m only interested in sending off the coverage report to the…
-
Speed Comparison: GitHub vs. GitLab (2020)
Been a minute since I’ve done one of these comparisons. The first one took place in 2016 with annual follow ups in 2017 and 2018. Then there was the curious case of 2019 where I had this post in my queue but never actually ran the benchmarks. I think the…
-
Complete CI/CD pipeline with GitLab Runners
Automation is one of the best ways to improve productivity. Even as a development team of one, spending a bit of time on DevOps and improving your developer quality of life can pay off immensely. Automated tasks strip away cognitive load. No more forgetting to deploy code because the process…