When you clone a git repo, you get the entirety of the cod base onto your computer, with all the history, all the branches, commits, all the metadata – everything. A perfect copy of the entire project is downloaded. While fine for many projects, the entire development history of a large project can be several […]
Grub Rescue: Everything You Need To Know
Grub is one of those programs that works in the background, and if everything goes well, you might not even notice that it exists. You boot your server, log in via SSH, and that’s that. What more do you need? The truth is that a lot is happening before you get to that SSH prompt, […]
Bashrc: How To Use It To Improve Your Linux Experience
Bashrc is the file in your home directory that configures various settings in your Linux terminal. “Bash” – the shell in which you issue commands to your Linux server stands for “Bourne Again Shell” in honor of Stephen Bourne who first developed the original shell in the late 1970s. The “rc” in Bash stands for […]
How To Delete Git Stashes: Everything You Need To Know
I’d earlier written about how to restore a git stash when you’re working with multiple projects. But there’s a lot more to deleting a stash that I was able to cover in that brief overview. Here’s everything you need to know about deleting a git stash. I’ll also show you how to try and recover […]
How to List Cron Jobs: Master Cron on Linux
Cron jobs are commands and scripts that the system runs periodically. Just as with cron on reboot, you can also use the systemd service manager to accomplish the same thing, but cron can be used by anyone and doesn’t require special permissions. It’s also easier to understand than systemd, but isn’t as integrated into the […]
How To Increment A Variable In Bash
Scripting is deeply integrated into bash. For example, I’d written earlier on how to efficiently concatenate strings. In the same way, you can use it as a programming language to perform various tasks, and this means that there are different ways to increment a variable in bash. In this article, I’ll show you the different […]
How to Use Crontab Reboot to Schedule Tasks
Crontab is a Linux/Unix system utility to manage the scheduling of tasks. You can use it to specify which tasks run at which times, and create complicated rules for managing their periodicity. Here at NameHero, we’ve written before about how to create cronjobs, but the kind of cronjobs in that article, aren’t the same as […]
How To Change A Directory In Python
Despite being over three decades old, Python is still an extremely relevant and popular programming language. The fact that it’s easy to understand, and works on a variety of platforms with little to no modification of code, along with its community support and deep integration with various libraries, make it a “must-have” tool in the […]
Git Branch Naming Conventions
When you first start using git, it can be intoxicating to see how easily you can create new branches and merge them. You feel powerful – as if you can do whatever you want and git will keep track of everything for you. And it’s true! Using git for software development gives you a level […]
How to Use Git Stash Restore to Work Multiple Projects
Software development is rarely so kind as to be linear. It would be great if we could work continuously on a single feature without distractions, and only move to something else when the previous job was done. In reality, however, even single developers who work on a project don’t have the luxury of working on […]