In an earlier article, I showed you how to use git fetch, why it’s different from “git pull”, and under which circumstances it makes sense to use “fetch” instead of pull. With that background, we will now look at how to merge a git branch into the master branch. This operation is at the heart […]
Category: VPS Hosting
Git Checkout vs. Switch: What’s The Difference?
Git is a distributed version control system that keeps track of changes to a set of computer files. Git branches allow for divergent development paths, enabling multiple independent paths of development that can then be merged. However, to work with multiple branches you first need to be able to switch from one branch to another. […]
How to Use Git Fetch and What Makes it Special?
In an earlier tutorial, I showed you how to connect a VPS to Github and move files from Github to the VPS. In that tutorial, we saw how to use “git clone” to initiate a clone of a remote project that you’re starting from scratch. If you already have a repository and have been working […]
Understanding RPM And Basic Package Management
Linux and Unix-like operating systems are made up of files and folders. Before package managers, this meant manually copying programs and associated files to their correct location. Package management changed this as it allows the maker of the software or a third party to package software to make the installation and removal of software much […]
How to Check Open Ports in Linux
A port in Linux is like a door number on your house, if your house was a server. Whenever someone wants to connect to your server, it needs to specify to which port it wants to connect. Depending on the port number, the server will route the request to a specific application, that will then […]
How to Initialize a Dictionary in Python
In Python, we have a data structure called a “dictionary” that’s used to hold key/value pairs. Thanks to the flexibility of data types in Python, these values can also include lists, which means you can associate more than one value with a single key if you want. You can also associate another dictionary with a […]
How to Append an Item to a Python Array
Appending an item to a Python array is easy, though the terminology requires some clarification. By default, Python doesn’t use “arrays” as is commonly understood in most programming languages but instead uses “lists”, which serve the same functionality for most ordinary use cases. However, there are some important differences between the two, and I’ll explain […]
How to Use the Cat Linux Command
“Cat” is one of the most well-known commands in Linux, and has a history dating back to the 1960s and 70s. The original purpose of the command was to concatenate files and display the results on the standard output, from which functionality the command gets its name – short for “concatenate”. Throughout all the many […]
How to Use and Install the Linux “mail” Command
The Linux “mail” command sends and receives e-mails from the command line. In this tutorial, I’ll show you how to install it with a basic configuration to send e-mails over the Internet and instruct you on how to use it to send e-mails, with and without attachments. A more advanced configuration is necessary if you […]
How to Use Git to Push to a Different Remote Branch
The usual understanding of a git workflow is when you pull from a remote branch, make changes on your local machine, and then push the changes back to the branch on the remote repo. However, there are many instances where, instead of pushing the same branch, you choose another remote branch to which to push. […]
